Make downstream issues show their error in the UI

This commit is contained in:
Joseph Schorr 2017-07-21 13:20:31 -04:00
parent fe6760749a
commit 9676d7d8c7
3 changed files with 5 additions and 4 deletions

View file

@ -47,7 +47,7 @@ def _security_status_for_image(namespace, repository, repo_image, include_vulner
else:
data = secscan_api.get_layer_data(repo_image, include_features=True)
except APIRequestFailure as arf:
raise DownstreamIssue({'message': arf.message})
raise DownstreamIssue(arf.message)
if data is None:
raise NotFound()