diff --git a/app/portainer/views/templates/templatesController.js b/app/portainer/views/templates/templatesController.js index 7ce6aebf7..04f9d224a 100644 --- a/app/portainer/views/templates/templatesController.js +++ b/app/portainer/views/templates/templatesController.js @@ -151,7 +151,7 @@ angular.module('portainer.app').controller('TemplatesController', [ $state.go('docker.stacks'); }) .catch(function error(err) { - Notifications.warning('Deployment error', err.data.err); + Notifications.error('Deployment error', err); }) .finally(function final() { $scope.state.actionInProgress = false; @@ -189,7 +189,7 @@ angular.module('portainer.app').controller('TemplatesController', [ $state.go('docker.stacks'); }) .catch(function error(err) { - Notifications.warning('Deployment error', err.data.err); + Notifications.error('Deployment error', err); }) .finally(function final() { $scope.state.actionInProgress = false;