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:
parent
f674573cdf
commit
0b85684168
3 changed files with 88 additions and 88 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue