fix(notifications): fix create user errormessage (#2820)

pull/7397/head
William 2019-04-08 15:48:43 +12:00 committed by Anthony Lapenna
parent 0f8de0a039
commit 8a7a73fe84
1 changed files with 3 additions and 1 deletions

View File

@ -15,7 +15,9 @@ angular.module('portainer.app')
service.error = function(title, e, 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;
} else if (e.data && e.data.message) {
msg = e.data.message;