zumito-framework 1.7.4 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -33,6 +33,8 @@ export class ErrorHandler {
|
|
|
33
33
|
console.error(error?.toString?.() || 'Unknown error');
|
|
34
34
|
console.line('');
|
|
35
35
|
}
|
|
36
|
+
// Emit framework error event so external modules can listen and report
|
|
37
|
+
this.framework.eventEmitter.emit('error', error, options);
|
|
36
38
|
this.printErrorStack(error);
|
|
37
39
|
if (options.exit)
|
|
38
40
|
process.exit(1);
|