aboutsummaryrefslogtreecommitdiffhomepage
path: root/helpers
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-10-23 22:04:52 +0200
committerBjørn Erik Pedersen <[email protected]>2019-10-24 11:11:18 +0200
commitbaa975082c6809c8a02a8109ec3062a2b7d48344 (patch)
tree61820ab09d58b1fb18099b3910dc5f6179991368 /helpers
parent3e8b5a5c0157fdcf93588a42fbc90b3cd898f6b1 (diff)
downloadhugo-baa975082c6809c8a02a8109ec3062a2b7d48344.tar.gz
hugo-baa975082c6809c8a02a8109ec3062a2b7d48344.zip
deps: Update to Chroma v0.6.8 to fix a crash
Also improve relevant logging. Fixes #6450
Diffstat (limited to 'helpers')
-rw-r--r--helpers/pygments.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/helpers/pygments.go b/helpers/pygments.go
index 0fe1e7592..4d7631ced 100644
--- a/helpers/pygments.go
+++ b/helpers/pygments.go
@@ -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
}