mirror of https://github.com/portainer/portainer
fix(templates): show error when failing to create stack (#4251)
parent
fc248c31c7
commit
859d26aef6
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue