reformated error for easier reading
authorerickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 5 Jul 2007 20:45:36 +0000 (20:45 +0000)
committererickson <erickson@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 5 Jul 2007 20:45:36 +0000 (20:45 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@1000 9efc2488-bf62-4759-914b-345cdb29e865

src/python/osrf/gateway.py

index 190afce..98c8686 100644 (file)
@@ -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)