Make sure all aborts have message information

This commit is contained in:
Joseph Schorr 2014-02-25 14:15:12 -05:00
parent 1100e72d9e
commit a120f6c64a
3 changed files with 9 additions and 7 deletions

View file

@ -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,