From d5f07d65bb55f6b77390ec4aa1da5229d28653b9 Mon Sep 17 00:00:00 2001 From: ysqi Date: Sun, 14 Feb 2016 18:54:40 +0800 Subject: [PATCH] panic parse config error --- config.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/config.go b/config.go index ffe92f06..92fb8914 100644 --- a/config.go +++ b/config.go @@ -193,7 +193,9 @@ func init() { return } - parseConfig(appConfigPath) + if err := parseConfig(appConfigPath); err != nil { + panic(err) + } } // now only support ini, next will support json.