mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-12 03:58:17 +00:00
Update toaster-error-handler.ts
This commit is contained in:
@ -4,6 +4,7 @@ import { ToasterService } from '../../services/toaster.service';
|
||||
export class ToasterErrorHandler extends RavenErrorHandler {
|
||||
handleError(err: any): void {
|
||||
super.handleError(err);
|
||||
if (!err) return;
|
||||
|
||||
const toasterService = this.injector.get(ToasterService);
|
||||
if (err.error && err.error.message) {
|
||||
|
Reference in New Issue
Block a user