From f5c03b6cd75a04a2334106e623fcdf8103b21ada Mon Sep 17 00:00:00 2001 From: niubility000 <76441520+niubility000@users.noreply.github.com> Date: Wed, 28 Feb 2024 10:14:13 +0800 Subject: [PATCH] fix: show warning and abs path of database used in cmd window --- cmd/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/utils.go b/cmd/utils.go index f070d54b..ef4a7935 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -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)