[PATCH] Add reset sequence after the error in parseGMI
Export this patch
---
hcwiki.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hcwiki.go b/hcwiki.go
index a4ab5a8..8b0b1e8 100644
--- a/hcwiki.go
+++ b/hcwiki.go
@@ -57,7 +57,7 @@ func parseGmi(filename string, conf config) map[string]interface{} {
matter.Handle("---", front.YAMLHandler)
fmatter, body, err := matter.Parse(file)
if err != nil {
- fmt.Fprintln(os.Stderr, chalk.Red, "Uh oh looks like there's no front matter.")
+ fmt.Fprintln(os.Stderr, chalk.Red, "Uh oh looks like there's no front matter.", chalk.ResetColor)
panic(err)
}
--
2.33.0