Skip to content

Commit

Permalink
Update error message formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kami committed Sep 19, 2016
1 parent 18d9333 commit a4c4840
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions st2common/st2common/bootstrap/actionsregistrar.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ def _register_action(self, pack, action):
if is_invalid_parameter_name:
parameter_name = re.search('\'(.+?)\' was unexpected', msg).groups()[0]
new_msg = ('Parameter name "%s" is invalid. Valid characters for parameter name '
'are [a-zA-Z0-0_]' % (parameter_name))
new_msg += '\n' + msg
'are [a-zA-Z0-0_].' % (parameter_name))
new_msg += '\n\n' + msg
raise jsonschema.ValidationError(new_msg)
raise e

Expand Down

0 comments on commit a4c4840

Please sign in to comment.