mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 15:10:12 +01:00
🐛 Problem with initializing workspace error alerts Fix https://github.com/siyuan-note/siyuan/issues/9492
This commit is contained in:
parent
3edfbe1b93
commit
57066c7dc9
1 changed files with 1 additions and 1 deletions
|
|
@ -222,7 +222,7 @@ func initWorkspaceDir(workspaceArg string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if !gulu.File.IsDir(WorkspaceDir) {
|
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) {
|
if err := os.MkdirAll(defaultWorkspaceDir, 0755); nil != err && !os.IsExist(err) {
|
||||||
logging.LogErrorf("create default workspace folder [%s] failed: %s", defaultWorkspaceDir, err)
|
logging.LogErrorf("create default workspace folder [%s] failed: %s", defaultWorkspaceDir, err)
|
||||||
os.Exit(logging.ExitCodeInitWorkspaceErr)
|
os.Exit(logging.ExitCodeInitWorkspaceErr)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue