deps: Update to Chroma v0.6.8 to fix a crash

Also improve relevant logging.

Fixes #6450
This commit is contained in:
Bjørn Erik Pedersen
2019-10-23 22:04:52 +02:00
parent 3e8b5a5c01
commit baa975082c
4 changed files with 26 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ func (h highlighters) chromaHighlight(code, lang, optsStr string) (string, error
err = chromaHighlight(b, code, lang, style, f)
if err != nil {
jww.ERROR.Print(err.Error())
jww.ERROR.Printf("Highlight failed: %s\nLang: %q\nCode: \n%s", err, lang, code)
return code, err
}