mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
🎨 文件系统读取或写入失败时退出内核 https://github.com/siyuan-note/siyuan/issues/7707
This commit is contained in:
parent
5f6d1eac9a
commit
c8cef8f455
5 changed files with 16 additions and 20 deletions
|
|
@ -127,7 +127,7 @@ func ReportFileSysFatalError(err error) {
|
|||
output = strings.Join(lines[5:], "\n")
|
||||
}
|
||||
logging.LogErrorf("check file system status failed: %s, %s", err, output)
|
||||
os.Exit(logging.ExitCodeFileSysInconsistent)
|
||||
os.Exit(logging.ExitCodeFileSysErr)
|
||||
}
|
||||
|
||||
func CheckFileSysStatus() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue