Merge pull request #1590 from alfred-landrum/denied-error

Update image create error parsing
This commit is contained in:
Joffrey F 2017-05-05 11:36:52 -07:00 committed by GitHub
commit 36b2d8149b
1 changed files with 2 additions and 1 deletions

View File

@ -23,7 +23,8 @@ def create_api_error_from_http_exception(e):
if response.status_code == 404:
if explanation and ('No such image' in str(explanation) or
'not found: does not exist or no pull access'
in str(explanation)):
in str(explanation) or
'repository does not exist' in str(explanation)):
cls = ImageNotFound
else:
cls = NotFound