feat: make server options a struct (#615)

This commit is contained in:
Henrique Dias authored and GitHub committed 2019-01-08 10:29:09 +00:00
1 parent 73b8d2ee7e
commit 0e7abaa7fb
13 files changed
+159 -90

No files matched your search

+2 -2
View File
@@ -98,8 +98,8 @@ func python(fn pythonFunc, cfg pythonConfig) cobraFunc {
if os.IsNotExist(err) {
data.hadDB = false
if !cfg.noDB || !cfg.allowNoDB {
log.Fatal(path + " does not exid.store. Please run 'filebrowser config init' fird.store.")
if !cfg.noDB && !cfg.allowNoDB {
log.Fatal(path + " does not exist. Please run 'filebrowser config init' first.")
}
} else if err != nil {
panic(err)