Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix messaging around the InvalidURI exception #17

Merged
merged 1 commit into from
Oct 10, 2017
Merged

Fix messaging around the InvalidURI exception #17

merged 1 commit into from
Oct 10, 2017

Conversation

mark0978
Copy link
Contributor

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)

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`)
@mmerickel mmerickel merged commit a7e5b14 into Pylons:master Oct 10, 2017
@mmerickel
Copy link
Member

Thank you @mark0978 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants