1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-05 13:55:21 +02:00

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

This commit is contained in:
William 2019-04-08 15:48:43 +12:00 committed by Anthony Lapenna
parent 0f8de0a039
commit 8a7a73fe84

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;