From 4d792597481273638f916f7910565acbcf0398a3 Mon Sep 17 00:00:00 2001 From: Anthony Lapenna Date: Tue, 8 May 2018 08:20:27 +0200 Subject: [PATCH] feat(notifications): display image removal error --- app/portainer/services/notifications.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/portainer/services/notifications.js b/app/portainer/services/notifications.js index 6ebff6ba1..85de16def 100644 --- a/app/portainer/services/notifications.js +++ b/app/portainer/services/notifications.js @@ -19,8 +19,8 @@ angular.module('portainer.app') msg = e.message; } else if (e.err && e.err.data && e.err.data.message) { msg = e.err.data.message; - } else if (e.data && e.data.length > 0 && e.data[0].message) { - msg = e.data[0].message; + } else if (e.err && e.err.data && e.err.data.length > 0 && e.err.data[0].message) { + msg = e.err.data[0].message; } else if (e.err && e.err.data && e.err.data.err) { msg = e.err.data.err; } else if (e.data && e.data.err) {