mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Remove box conf if parse failed
This commit is contained in:
parent
c2a6e6560a
commit
abd1030cb8
1 changed files with 1 additions and 0 deletions
|
|
@ -123,6 +123,7 @@ func ListNotebooks() (ret []*Box, err error) {
|
||||||
}
|
}
|
||||||
if readErr = gulu.JSON.UnmarshalJSON(data, boxConf); nil != readErr {
|
if readErr = gulu.JSON.UnmarshalJSON(data, boxConf); nil != readErr {
|
||||||
logging.LogErrorf("parse box conf [%s] failed: %s", boxConfPath, readErr)
|
logging.LogErrorf("parse box conf [%s] failed: %s", boxConfPath, readErr)
|
||||||
|
os.RemoveAll(boxConfPath)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue