fix(templates): show error when failing to create stack (#4251)

pull/4262/head
Chaim Lev-Ari 2020-08-21 10:34:40 +03:00 committed by GitHub
parent fc248c31c7
commit 859d26aef6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ angular.module('portainer.app').controller('TemplatesController', [
$state.go('docker.stacks'); $state.go('docker.stacks');
}) })
.catch(function error(err) { .catch(function error(err) {
Notifications.warning('Deployment error', err.data.err); Notifications.error('Deployment error', err);
}) })
.finally(function final() { .finally(function final() {
$scope.state.actionInProgress = false; $scope.state.actionInProgress = false;
@ -189,7 +189,7 @@ angular.module('portainer.app').controller('TemplatesController', [
$state.go('docker.stacks'); $state.go('docker.stacks');
}) })
.catch(function error(err) { .catch(function error(err) {
Notifications.warning('Deployment error', err.data.err); Notifications.error('Deployment error', err);
}) })
.finally(function final() { .finally(function final() {
$scope.state.actionInProgress = false; $scope.state.actionInProgress = false;