mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-18 14:58:15 +00:00
Update toaster-error-handler.ts
This commit is contained in:
@ -6,6 +6,10 @@ export class ToasterErrorHandler extends RavenErrorHandler {
|
||||
super.handleError(err);
|
||||
|
||||
const toasterService = this.injector.get(ToasterService);
|
||||
if (err.error.message) {
|
||||
toasterService.error(err.error.message);
|
||||
} else {
|
||||
toasterService.error(err.message);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user