aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src
diff options
context:
space:
mode:
authorKirawi2021-10-23 12:52:18 +0000
committerGitHub2021-10-23 12:52:18 +0000
commit0cb5e0b2caba61bbcf6f57ce58506882766d5eea (patch)
treed87c92ab1fcf969be89847e69ff4b370dfb4f2e7 /helix-core/src
parent0f886af4b993c836bb2d522f6e036362593ff8b8 (diff)
log syntax highlighting init errors (#895)
Diffstat (limited to 'helix-core/src')
-rw-r--r--helix-core/src/syntax.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs
index f4b4535b..281a70f9 100644
--- a/helix-core/src/syntax.rs
+++ b/helix-core/src/syntax.rs
@@ -186,7 +186,9 @@ impl LanguageConfiguration {
if highlights_query.is_empty() {
None
} else {
- let language = get_language(&crate::RUNTIME_DIR, &self.language_id).ok()?;
+ let language = get_language(&crate::RUNTIME_DIR, &self.language_id)
+ .map_err(|e| log::info!("{}", e))
+ .ok()?;
let config = HighlightConfiguration::new(
language,
&highlights_query,