fix: show the current used filebrowser.db utils.go
This commit is contained in:
parent
f5c03b6cd7
commit
673a971217
@ -100,7 +100,7 @@ func python(fn pythonFunc, cfg pythonConfig) cobraFunc {
|
|||||||
} else if !exists && !cfg.noDB && !cfg.allowNoDB {
|
} else if !exists && !cfg.noDB && !cfg.allowNoDB {
|
||||||
log.Fatal(absPath + " does not exist. Please run 'filebrowser config init' first.")
|
log.Fatal(absPath + " does not exist. Please run 'filebrowser config init' first.")
|
||||||
} else if !exists && !cfg.noDB {
|
} else if !exists && !cfg.noDB {
|
||||||
log.Println("Warning: filebrowser.db can't be found. Initialing in " + strings.TrimRight(absPath, "filebrowser.db"))
|
log.Println("Warning: filebrowser.db can't be found. Initialing in " + strings.TrimSuffix(absPath, "filebrowser.db"))
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Println("Using database: " + absPath)
|
log.Println("Using database: " + absPath)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user