1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-07 14:55:27 +02:00

fix(app): parse response with null body (#4654)

* fix(app): parse response with null body

* style(docker): add comment explaining change

* fix(images): show correct error when failing import

* fix(images): use async await
This commit is contained in:
Chaim Lev-Ari 2021-06-11 03:05:54 +03:00 committed by GitHub
parent f674573cdf
commit 0b85684168
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 88 additions and 88 deletions

View file

@ -25,7 +25,7 @@ angular.module('portainer.docker').controller('ImportImageController', [
Notifications.success('Images successfully uploaded');
})
.catch(function error(err) {
Notifications.error('Failure', err.message, 'Unable to upload image');
Notifications.error('Failure', err, 'Unable to upload image');
})
.finally(function final() {
$scope.state.actionInProgress = false;