Add an icon for build triggers and properly handle build trigger activation errors
This commit is contained in:
parent
eca525e18c
commit
39eaca346d
3 changed files with 4 additions and 4 deletions
|
@ -1434,8 +1434,7 @@ def activate_build_trigger(namespace, repository, trigger_uuid):
|
|||
trigger.auth_token, new_config_dict)
|
||||
except TriggerActivationException as e:
|
||||
token.delete_instance()
|
||||
abort(400, message = e.msg)
|
||||
return
|
||||
return request_error(message=e.message)
|
||||
|
||||
# Save the updated config.
|
||||
trigger.config = json.dumps(final_config)
|
||||
|
|
Reference in a new issue