@@ -38,9 +38,16 @@ impl HighlightingAssets {
40 let theme_dir = source_dir.join("themes");
40 let theme_dir = source_dir.join("themes");
41−
41+ if theme_dir.exists() {
42− let res = theme_set.add_from_folder(&theme_dir);
42+ let res = theme_set.add_from_folder(&theme_dir);
43− if res.is_err() {
43+ if let Err(err) = res {
45+ "Failed to load one or more themes from '{}' (reason: '{}')",
46+ theme_dir.to_string_lossy(),
45 "No themes were found in '{}', using the default set",
52 "No themes were found in '{}', using the default set",
46 theme_dir.to_string_lossy()
53 theme_dir.to_string_lossy()