From 4c1e55982cc15c3d2f3d949c3721c823f97f2c4e Mon Sep 17 00:00:00 2001 From: qcqcqc <1220204124@zust.edu.cn> Date: Thu, 6 Nov 2025 11:35:53 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20aspect=E6=89=A7=E8=A1=8C=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=89=93=E5=8D=B0error=20log?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/AppLoader.js | 1 + src/AppLoader.ts | 1 + 2 files changed, 2 insertions(+) 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