mirror of
https://github.com/writeas/writefreely
synced 2025-01-07 13:31:43 +01:00
Output config saving errors
This commit is contained in:
parent
1a6f61690e
commit
6bdb7a1c1c
6
app.go
6
app.go
@ -42,7 +42,11 @@ func Serve() {
|
|||||||
log.Info("Creating configuration...")
|
log.Info("Creating configuration...")
|
||||||
c := config.New()
|
c := config.New()
|
||||||
log.Info("Saving configuration...")
|
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)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user