From ceac827a7f6a99730dc9f3318c4b7a2a1e3030b9 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 4 Jan 2023 20:41:33 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E7=A7=BB=E5=8A=A8=E7=AB=AF=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=A4=9A=E5=B7=A5=E4=BD=9C=E7=A9=BA=E9=97=B4=20https:?= =?UTF-8?q?//github.com/siyuan-note/siyuan/issues/4642?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/util/working.go | 2 +- kernel/util/working_mobile.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/util/working.go b/kernel/util/working.go index ed91959cc..50cfc1011 100644 --- a/kernel/util/working.go +++ b/kernel/util/working.go @@ -207,7 +207,7 @@ func initWorkspaceDir(workspaceArg string) { WorkspaceDir = workspaceArg } if !gulu.File.IsDir(WorkspaceDir) { - log.Printf("use the default workspace [%s] since the specified workspace [%s] is not a dir", WorkspaceDir, defaultWorkspaceDir) + log.Printf("use the default workspace [%s] since the specified workspace [%s] is not a dir", defaultWorkspaceDir, WorkspaceDir) WorkspaceDir = defaultWorkspaceDir } workspacePaths = append(workspacePaths, WorkspaceDir) diff --git a/kernel/util/working_mobile.go b/kernel/util/working_mobile.go index 465468f5c..9b6d3561e 100644 --- a/kernel/util/working_mobile.go +++ b/kernel/util/working_mobile.go @@ -93,7 +93,7 @@ func initWorkspaceDirMobile(workspaceBaseDir string) { if 0 < len(workspacePaths) { WorkspaceDir = workspacePaths[len(workspacePaths)-1] if !gulu.File.IsDir(WorkspaceDir) { - log.Printf("use the default workspace [%s] since the specified workspace [%s] is not a dir", WorkspaceDir, defaultWorkspaceDir) + log.Printf("use the default workspace [%s] since the specified workspace [%s] is not a dir", defaultWorkspaceDir, WorkspaceDir) WorkspaceDir = defaultWorkspaceDir } workspacePaths[len(workspacePaths)-1] = WorkspaceDir