From: erickson Date: Thu, 5 Jul 2007 20:45:36 +0000 (+0000) Subject: reformated error for easier reading X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4f789f85a8e67015eedaf614b4b8adc2445fdc5b;p=opensrf%2Fbjwebb.git reformated error for easier reading git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1000 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/src/python/osrf/gateway.py b/src/python/osrf/gateway.py index 190afce..98c8686 100644 --- a/src/python/osrf/gateway.py +++ b/src/python/osrf/gateway.py @@ -21,7 +21,7 @@ class GatewayRequest: response =urllib2.urlopen(request) except urllib2.HTTPError, e: # log this? - sys.stderr.write('HTTPError: code=%d : %s' % (e.code, str(e))) + sys.stderr.write('%s => %s?%s\n' % (str(e), self.buildURL(), params)) raise e return self.handleResponse(response)