增加启动错误日志

This commit is contained in:
whyour
2026-07-04 21:36:11 +08:00
parent 1953022b99
commit cdfa6c3c3c
2 changed files with 17 additions and 13 deletions
+6
View File
@@ -541,6 +541,12 @@ export function safeJSONParse(value?: string) {
}
}
export function errStack(error: unknown): string {
return error instanceof Error && error.stack
? error.stack
: String(error);
}
export async function rmPath(path: string) {
try {
const _exsit = await fileExist(path);