Report error, but don’t fatally stop if pygments has error. Return original string. (+1 squashed commit)

Squashed commits:
[849a7af] if highlighting doesn’t work, just return original string
This commit is contained in:
spf13 2014-01-10 12:50:31 -05:00
parent 3fd6c1a24e
commit 01da9a40e6

View file

@ -38,7 +38,7 @@ func Highlight(code string, lexer string) string {
if err := cmd.Run(); err != nil {
log.Print(stderr.String())
log.Fatal(err)
return code
}
return out.String()