mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 15:59:41 +02:00
fix(templates): show error when failing to create stack (#4251)
This commit is contained in:
parent
fc248c31c7
commit
859d26aef6
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue