Skip to content

Commit

Permalink
Fix messaging around the InvalidURI exception
Browse files Browse the repository at this point in the history
The default behavior of InvalidURI would display the config_uri, but if you specify a message, that config_uri is not displayed, making troubleshooting hard.  This adds `config_uri` to the exception message so you can tell what is broken.  In my case it was
`pshell -p bpython my.ini`  which needed to be `pshell my.ini -p bpython`
The exception message before this change didn't tell you what you needed to know (that `-p` was the `config_uri`)
  • Loading branch information
mark0978 committed Oct 10, 2017
1 parent c81aabe commit f474aeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plaster/uri.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def parse_uri(config_uri):
if not scheme:
raise InvalidURI(config_uri, (
'Could not determine the loader scheme for the supplied '
'config_uri.'))
'config_uri "{0}"'.format(config_uri)))

return PlasterURL(
scheme=scheme,
Expand Down

0 comments on commit f474aeb

Please sign in to comment.