feat: error stack

This commit is contained in:
pk5ls20 committed 2024-11-17 04:43:29 +08:00
1 parent 666da80ef5
commit 2e108a4bd6
3 files changed
+11 -11

No files matched your search

+1 -1
View File
@@ -47,7 +47,7 @@ abstract class BaseAction<PayloadType, ReturnDataType> {
return OB11Response.ok(resData);
} catch (e: any) {
this.core.context.logger.logError.bind(this.core.context.logger)('发生错误', e);
return OB11Response.error(e?.toString() || e?.stack?.toString() || '未知错误,可能操作超时', 200);
return OB11Response.error(e?.stack?.toString() || e?.toString() || '未知错误,可能操作超时', 200);
}
}