fix: logger catch

This commit is contained in:
AncTe committed 2025-04-17 14:04:35 +08:00
1 parent b279ad5ba8
commit 425ac1b684
1 file changed
+5 -1
+5 -1
View File
@@ -186,7 +186,11 @@ export class Logger {
this.disable();
this.catching = true;
const ret = fn();
this.catching = false;
if (this.catchStack.length === 0) {
this.catching = false;
} else {
this.catching = true;
}
if (before) this.enable();
this.catchStack.pop();