We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89659e4 commit dd44bdcCopy full SHA for dd44bdc
src/color.rs
@@ -176,7 +176,10 @@ impl Colors {
176
ThemeOption::Default | ThemeOption::NoLscolors => Some(Theme::default().color),
177
ThemeOption::Custom => Some(
178
Theme::from_path::<ColorTheme>(Path::new("colors").to_str().unwrap())
179
- .unwrap_or_default(),
+ .unwrap_or_else(|e| {
180
+ print_output!("Warning: cannot load custom theme. {}.\n\n", e);
181
+ ColorTheme::default()
182
+ }),
183
),
184
ThemeOption::CustomLegacy(ref file) => {
185
print_output!(
0 commit comments