🎨 文件系统读取或写入失败时退出内核 https://github.com/siyuan-note/siyuan/issues/7707

This commit is contained in:
Liang Ding 2023-03-19 09:59:16 +08:00
parent 5f6d1eac9a
commit c8cef8f455
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
5 changed files with 16 additions and 20 deletions

View file

@ -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() {