1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-02-07 13:41:14 +00:00
Martin Nordholts 05e9da390f bat cache --build: Print syntect error message for themes if any
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.)
2020-12-28 22:32:56 +01:00
..
2020-04-24 16:11:05 +02:00
2020-12-21 09:41:29 +01:00
2020-04-22 23:55:28 +02:00
2020-03-31 09:27:56 +02:00
2020-12-28 09:27:40 +01:00
2020-04-24 16:11:05 +02:00
2020-12-28 09:27:40 +01:00
2020-11-23 14:25:01 +01:00
2020-04-22 23:55:28 +02:00
2020-11-23 14:25:01 +01:00
2020-10-01 21:06:37 +02:00
2020-04-22 23:55:28 +02:00