Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Adding more helpful '!=200' message for dud path. #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elena
Copy link

@elena elena commented Feb 8, 2014

Informing what the broken path is when the exception occurs. Cheers!

@@ -35,7 +35,7 @@ def _disk_render_path(args):

resp = client.get(path)
if resp.status_code != 200:
raise Exception
raise Exception("Path %s did not return status 200" % path)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The improved message could include the actual resp.status_code too, which might be useful for figuring out which part of the callable stopped a success response being returned.

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

Successfully merging this pull request may close these issues.

2 participants