Be more specific about where we failed

This commit is contained in:
Christian Muehlhaeuser
2019-12-18 23:07:20 +01:00
parent 82837cc7c1
commit a26f6208da
+1 -1
View File
@@ -63,7 +63,7 @@ func NewTermRendererFromBytes(b []byte, options ansi.Options) (*TermRenderer, er
err := json.Unmarshal(b, &options.Styles)
if err != nil {
// FIXME: wrap error once we depend on Go 1.13
return nil, fmt.Errorf("loading style: %v", err)
return nil, fmt.Errorf("parsing style: %v", err)
}
md := goldmark.New(