Output config saving errors

This commit is contained in:
Matt Baer 2018-10-24 14:21:42 -04:00
parent 1a6f61690e
commit 6bdb7a1c1c
1 changed files with 5 additions and 1 deletions

6
app.go
View File

@ -42,7 +42,11 @@ func Serve() {
log.Info("Creating configuration...")
c := config.New()
log.Info("Saving configuration...")
config.Save(c)
err := config.Save(c)
if err != nil {
log.Error("Unable to save configuration: %v", err)
os.Exit(1)
}
os.Exit(0)
}