Skip to content

Commit 43a8fc5

Browse files
author
Matthew Hill
committed
fix(transition/transitionService): uses console.error to log error in default error handler
1 parent 58eef1f commit 43a8fc5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/transition/transitionService.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,9 @@ export class TransitionService implements ITransitionService, IHookRegistry {
8787
getHooks : (hookName: string) => IEventHook[];
8888

8989
private _defaultErrorHandler: ((_error) => void) = function $defaultErrorHandler($error$) {
90-
if ($error$ instanceof Error) console.log($error$);
90+
if ($error$ instanceof Error) {
91+
console.error($error$);
92+
}
9193
};
9294

9395
defaultErrorHandler(handler: (error) => void) {

0 commit comments

Comments
 (0)