feat: make server options a struct (#615)
This commit is contained in:
1 parent
73b8d2ee7e
commit
0e7abaa7fb
13 files changed
+159
-90
No files matched your search
+2
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user