fix: show warning and abs path of database used in cmd window

This commit is contained in:
niubility000 2024-02-28 10:14:13 +08:00 committed by GitHub
parent ce89c43efa
commit f5c03b6cd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -100,7 +100,7 @@ func python(fn pythonFunc, cfg pythonConfig) cobraFunc {
} else if !exists && !cfg.noDB && !cfg.allowNoDB {
log.Fatal(absPath + " does not exist. Please run 'filebrowser config init' first.")
} else if !exists && !cfg.noDB {
log.Println(absPath + " does not exist. initialing...")
log.Println("Warning: filebrowser.db can't be found. Initialing in " + strings.TrimRight(absPath, "filebrowser.db"))
}
log.Println("Using database: " + absPath)