Selaa lähdekoodia

:bug: Create doc with ref Fix https://github.com/siyuan-note/siyuan/issues/9329

Daniel 1 vuosi sitten
vanhempi
commit
11cc108893
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      kernel/model/path.go

+ 2 - 1
kernel/model/path.go

@@ -47,8 +47,9 @@ func createDocsByHPath(boxID, hPath, content, parentID, id string /* id 参数
 			// 如果父文档存在且 ID 一致,则直接在父文档下创建
 			p := strings.TrimSuffix(preferredParent.Path, ".sy") + "/" + id + ".sy"
 			if _, err = createDoc(boxID, p, name, content); nil != err {
-				return
+				logging.LogErrorf("create doc [%s] failed: %s", p, err)
 			}
+			return
 		}
 	} else {
 		if "" == id {