mirror of
https://github.com/sharkdp/bat
synced 2024-11-04 18:00:24 +00:00
05e9da390f
This will fix #614 by making it clear what is wrong by showing the following error message: Failed to load one or more themes from '/Users/me/.config/bat/themes' (reason: 'Invalid syntax theme settings') We also need to add a check if theme_dir.exists(), otherwise an absent dir will seem like an error: Failed to load one or more themes from '/Users/me/.config/bat/themes' (reason: 'IO error for operation on /Users/me/.config/bat/themes: No such file or directory (os error 2)') (This is the same check we already have for syntax_dir.) |
||
---|---|---|
.. | ||
bin/bat | ||
assets_metadata.rs | ||
assets.rs | ||
config.rs | ||
controller.rs | ||
decorations.rs | ||
diff.rs | ||
error.rs | ||
input.rs | ||
less.rs | ||
lib.rs | ||
line_range.rs | ||
macros.rs | ||
output.rs | ||
paging.rs | ||
preprocessor.rs | ||
pretty_printer.rs | ||
printer.rs | ||
style.rs | ||
syntax_mapping.rs | ||
terminal.rs | ||
wrapping.rs |