From a5b4b605ddb8fd15b0627dc9b65013ce3574326b Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 29 Dec 2014 01:09:38 +0900 Subject: [PATCH] Replace panic with log.Fatal --- _docs/gen.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_docs/gen.go b/_docs/gen.go index b38bcc540..cb4dce75f 100644 --- a/_docs/gen.go +++ b/_docs/gen.go @@ -83,7 +83,7 @@ func main() { name := filepath.Base(templatePath) t, err := template.New(name).Funcs(funcs).ParseFiles(templatePath) if err != nil { - panic(err) + log.Fatal(err) } examples := []example{ {Name: "hue"},