From 57066c7dc9047edea94e982d023e83325bb56e3a Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Mon, 23 Oct 2023 22:28:35 +0800 Subject: [PATCH] :bug: Problem with initializing workspace error alerts Fix https://github.com/siyuan-note/siyuan/issues/9492 --- kernel/util/working.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/util/working.go b/kernel/util/working.go index 380eeb6bf..7349669ab 100644 --- a/kernel/util/working.go +++ b/kernel/util/working.go @@ -222,7 +222,7 @@ func initWorkspaceDir(workspaceArg string) { } if !gulu.File.IsDir(WorkspaceDir) { - logging.LogWarnf("use the default workspace [%s] since the specified workspace [%s] is not a dir", WorkspaceDir, defaultWorkspaceDir) + logging.LogWarnf("use the default workspace [%s] since the specified workspace [%s] is not a dir", defaultWorkspaceDir, WorkspaceDir) if err := os.MkdirAll(defaultWorkspaceDir, 0755); nil != err && !os.IsExist(err) { logging.LogErrorf("create default workspace folder [%s] failed: %s", defaultWorkspaceDir, err) os.Exit(logging.ExitCodeInitWorkspaceErr)