Skip to content

Commit

Permalink
fix(notifications): Do not show temporary reconnection errors (#339)
Browse files Browse the repository at this point in the history
* Do not show temporary reconnection errors

* fixup! Do not show temporary reconnection errors

(cherry picked from commit f9760bc)
  • Loading branch information
Janelle Law authored and mergify-bot committed Nov 19, 2021
1 parent 25dc165 commit 4e3acd2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/app/Shared/Services/NotificationChannel.service.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,12 @@ export class NotificationChannel {
}

private logError(title: string, err: any): void {
window.console.error(err.stack);
this.notifications.danger(title, JSON.stringify(err.message));
window.console.error(err?.message);
window.console.error(err?.stack);

if(!!err?.message) {
this.notifications.danger(title, JSON.stringify(err?.message));
}
}
}

Expand Down

0 comments on commit 4e3acd2

Please sign in to comment.