Skip to content

Commit

Permalink
fix(defaultErrorHandler): log Error and Error.stack by default
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Aug 2, 2016
1 parent 5304f5e commit e102a85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/state/stateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ export class StateService {
/** @hidden */
private _defaultErrorHandler: ((_error) => void) = function $defaultErrorHandler($error$) {
if ($error$ instanceof Error && $error$.stack) {
console.error($error$);
console.error($error$.stack);
} else if ($error$ instanceof Rejection) {
console.error($error$);
Expand Down

0 comments on commit e102a85

Please sign in to comment.