Merge branch 'dev' of gitea.51mars.com:Oak-Team/oak-cli into dev
This commit is contained in:
commit
04c53f956a
|
|
@ -171,6 +171,8 @@ async function startup(path, connector, omitWatchers, omitTimers, routine) {
|
||||||
if (props.level === "error") {
|
if (props.level === "error") {
|
||||||
appLoader.execRoutine(async (ctx) => {
|
appLoader.execRoutine(async (ctx) => {
|
||||||
await errorHandler(props.caller, props.args, ctx);
|
await errorHandler(props.caller, props.args, ctx);
|
||||||
|
}).catch((err) => {
|
||||||
|
console.warn('执行全局错误处理失败:', err);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return props.args;
|
return props.args;
|
||||||
|
|
|
||||||
|
|
@ -219,6 +219,8 @@ export async function startup<ED extends EntityDict & BaseEntityDict, FrontCxt e
|
||||||
if (props.level === "error") {
|
if (props.level === "error") {
|
||||||
appLoader.execRoutine(async (ctx) => {
|
appLoader.execRoutine(async (ctx) => {
|
||||||
await errorHandler( props.caller, props.args, ctx);
|
await errorHandler( props.caller, props.args, ctx);
|
||||||
|
}).catch((err) => {
|
||||||
|
console.warn('执行全局错误处理失败:', err);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return props.args;
|
return props.args;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue