mirror of https://github.com/portainer/portainer
fix(notifications): fix create user errormessage (#2820)
parent
0f8de0a039
commit
8a7a73fe84
|
@ -15,7 +15,9 @@ angular.module('portainer.app')
|
||||||
|
|
||||||
service.error = function(title, e, fallbackText) {
|
service.error = function(title, e, fallbackText) {
|
||||||
var msg = fallbackText;
|
var msg = fallbackText;
|
||||||
if (e.data && e.data.details) {
|
if (e.err && e.err.data && e.err.data.details) {
|
||||||
|
msg = e.err.data.details;
|
||||||
|
} else if (e.data && e.data.details) {
|
||||||
msg = e.data.details;
|
msg = e.data.details;
|
||||||
} else if (e.data && e.data.message) {
|
} else if (e.data && e.data.message) {
|
||||||
msg = e.data.message;
|
msg = e.data.message;
|
||||||
|
|
Loading…
Reference in New Issue