From 6bdb7a1c1caa17dc13a5a267d76c0f8ef4caf5c1 Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Wed, 24 Oct 2018 14:21:42 -0400 Subject: [PATCH] Output config saving errors --- app.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app.go b/app.go index 76aae55..86351ed 100644 --- a/app.go +++ b/app.go @@ -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) }