Skip to content

Commit

Permalink
cleaner error message string building
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Nov 25, 2012
1 parent 1a5803a commit 0eda5b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/resourceproxy/controller.py
Expand Up @@ -21,7 +21,7 @@ def proxy_resource(context, data_dict):
res = error
had_http_error = True
except urllib2.URLError, error:
details = "Could not proxy resource. " + str(error.reason)
details = "Could not proxy resource. %s" % str(error.reason)
base.abort(500, detail=details)
base.response.headers = res.headers

Expand Down

0 comments on commit 0eda5b4

Please sign in to comment.