Make sure all aborts have message information
This commit is contained in:
parent
1100e72d9e
commit
a120f6c64a
3 changed files with 9 additions and 7 deletions
|
@ -259,7 +259,7 @@ def get_image_json(namespace, repository, image_id, headers):
|
|||
data = store.get_content(store.image_json_path(namespace, repository,
|
||||
image_id, uuid))
|
||||
except IOError:
|
||||
flask_abort(404)
|
||||
abort(404, message='Image data not found')
|
||||
|
||||
try:
|
||||
size = store.get_size(store.image_layer_path(namespace, repository,
|
||||
|
|
Reference in a new issue