Output error on config load failure

This commit is contained in:
Fabian Reinartz 2015-10-17 10:02:52 +02:00
parent 0b818bac38
commit 22e1e9ca72

View File

@ -97,7 +97,7 @@ func main() {
log.With("file", *configFile).Infof("Loading configuration file")
defer func() {
if err != nil {
log.With("file", *configFile).Errorf("Loading configuration file failed")
log.With("file", *configFile).Errorf("Loading configuration file failed: %s", err)
}
}()