From d7473b7a6db98aa3a1a6c013e74c96cd5f71f5a6 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Sat, 18 Mar 2023 22:54:11 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E4=BD=BF=E7=94=A8=E7=AC=AC=E4=B8=89?= =?UTF-8?q?=E6=96=B9=E5=90=8C=E6=AD=A5=E7=9B=98=E6=97=B6=E5=BC=B9=E5=87=BA?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E5=B9=B6=E9=80=80=E5=87=BA=E5=86=85=E6=A0=B8?= =?UTF-8?q?=20https://github.com/siyuan-note/siyuan/issues/7683?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/box.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kernel/model/box.go b/kernel/model/box.go index 2a9054417..2464c06ec 100644 --- a/kernel/model/box.go +++ b/kernel/model/box.go @@ -211,7 +211,9 @@ func (box *Box) saveConf0(data []byte) { logging.LogErrorf("save box conf [%s] failed: %s", confPath, err) } if err := filelock.WriteFile(confPath, data); nil != err { - logging.LogErrorf("save box conf [%s] failed: %s", confPath, err) + logging.LogErrorf("write box conf [%s] failed: %s", confPath, err) + util.ReportFileSysFatalError(err) + return } }