Skip to content

Commit 1cb61a1

Browse files
committed
provide error when unable to parse config
1 parent a7bbc6a commit 1cb61a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func main() {
3030
if cobj, err := srvConfig.ParseConfig(config); err == nil {
3131
srvConfig.Config = &cobj
3232
} else {
33-
log.Fatal(fmt.Sprintf("Unable to parse config='%s'", config))
33+
log.Fatal(fmt.Sprintf("Unable to parse config='%s'\nerror: %v", config, err))
3434
}
3535
if srvConfig.Config.UserMetaData.WebServer.Verbose > 0 {
3636
log.SetFlags(log.Llongfile)

0 commit comments

Comments
 (0)