Skip to content

Commit

Permalink
fix(transition/transitionService): uses console.error to log error in…
Browse files Browse the repository at this point in the history
… default error handler
  • Loading branch information
Matthew Hill committed Mar 2, 2016
1 parent 58eef1f commit 43a8fc5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/transition/transitionService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ export class TransitionService implements ITransitionService, IHookRegistry {
getHooks : (hookName: string) => IEventHook[];

private _defaultErrorHandler: ((_error) => void) = function $defaultErrorHandler($error$) {
if ($error$ instanceof Error) console.log($error$);
if ($error$ instanceof Error) {
console.error($error$);
}
};

defaultErrorHandler(handler: (error) => void) {
Expand Down

0 comments on commit 43a8fc5

Please sign in to comment.