diff --git a/lib/AppLoader.js b/lib/AppLoader.js index d8efd6c..c781cea 100644 --- a/lib/AppLoader.js +++ b/lib/AppLoader.js @@ -172,6 +172,7 @@ class AppLoader extends types_1.AppLoader { }; } catch (err) { + console.error(`执行aspect「${name}」出错`, err); await context.rollback(); if (err instanceof types_1.OakException) { throw err; diff --git a/src/AppLoader.ts b/src/AppLoader.ts index 46d9d31..61934f2 100644 --- a/src/AppLoader.ts +++ b/src/AppLoader.ts @@ -221,6 +221,7 @@ export class AppLoader