Skip to content

Commit e102a85

Browse files
fix(defaultErrorHandler): log Error and Error.stack by default
1 parent 5304f5e commit e102a85

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/state/stateService.ts

+1
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,7 @@ export class StateService {
483483
/** @hidden */
484484
private _defaultErrorHandler: ((_error) => void) = function $defaultErrorHandler($error$) {
485485
if ($error$ instanceof Error && $error$.stack) {
486+
console.error($error$);
486487
console.error($error$.stack);
487488
} else if ($error$ instanceof Rejection) {
488489
console.error($error$);

0 commit comments

Comments
 (0)