Skip to content
Snippets Groups Projects
Commit b211c83e authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FEAT #13695 TIME 0:45 fix message error notification

parent e2600e9f
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,11 @@ export class NotificationService {
} else if (err.error.exception !== undefined) {
this.error(err.error.exception[0].message, err.url);
} else if (err.error.error !== undefined) {
this.error(err.error.error.message, err.url);
if (err.error.error[0] !== undefined) {
this.error(err.error.error[0].message, err.url);
} else {
this.error(err.error.error.message, err.url);
}
} else {
this.error(`${err.status} : ${err.statusText}`, err.url);
}
......@@ -94,7 +98,11 @@ export class NotificationService {
} else if (err.error.exception !== undefined) {
this.error(err.error.exception[0].message, err.url);
} else if (err.error.error !== undefined) {
this.error(err.error.error.message, err.url);
if (err.error.error[0] !== undefined) {
this.error(err.error.error[0].message, err.url);
} else {
this.error(err.error.error.message, err.url);
}
} else {
this.error(`${err.status} : ${err.statusText}`, err.url);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment