refactor: 代码格式化

This commit is contained in:
digua
2026-01-31 10:06:44 +08:00
parent 58e18326d9
commit f6b4b6dc4c
114 changed files with 1276 additions and 985 deletions

View File

@@ -128,12 +128,9 @@ export function executeRawSQL(sessionId: string, sql: string): SQLResult {
} catch (error) {
if (error instanceof Error) {
// 美化错误信息
const message = error.message
.replace(/^SQLITE_ERROR: /, '')
.replace(/^SQLITE_READONLY: /, '只读模式:')
const message = error.message.replace(/^SQLITE_ERROR: /, '').replace(/^SQLITE_READONLY: /, '只读模式:')
throw new Error(message)
}
throw error
}
}