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

@ -330,7 +330,8 @@ class RepositoryTrust(RepositoryParamResource):
tags, _ = tuf_metadata_api.get_default_tags_with_expiration(namespace, repository)
if tags and not tuf_metadata_api.delete_metadata(namespace, repository):
raise DownstreamIssue({'message': 'Unable to delete downstream trust metadata'})
raise DownstreamIssue('Unable to delete downstream trust metadata')
values = request.get_json()
model.set_trust(namespace, repository, values['trust_enabled'])