Permalink
Browse files

server/perkeepd: don't ignore error from serverinit.WriteDefaultConfi…

…gFile

Fixes #1154

Change-Id: I1b35ab70ef3ad20fa8527a074485661a36b04e52
(cherry picked from commit e22801a)
  • Loading branch information...
bradfitz committed May 10, 2018
1 parent fcba46d commit 4a715367ed854e19c204ca7c4014700fec427a76
Showing with 3 additions and 2 deletions.
  1. +3 −2 server/perkeepd/camlistored.go
@@ -191,9 +191,10 @@ func loadConfig(arg string) (conf *serverinit.Config, isNewConfig bool, err erro
return
}
log.Printf("Generating template config file %s", absPath)
if err = serverinit.WriteDefaultConfigFile(absPath, sqlite.CompiledIn()); err == nil {
isNewConfig = true
if err = serverinit.WriteDefaultConfigFile(absPath, sqlite.CompiledIn()); err != nil {
return
}
isNewConfig = true
}
case filepath.IsAbs(arg):
absPath = arg

0 comments on commit 4a71536

Please sign in to comment.