X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=PLC%2FPyCurl.py;h=032ab755fa973bb9f0c0e6005da60e581b3fcd6c;hb=refs%2Fheads%2Fplanetlab-4_0-branch;hp=8352fd0cd5e0956af794752219ec9641bd489204;hpb=a862007a170dc19ebe1079c61e9b4f1c4aba9206;p=plcapi.git diff --git a/PLC/PyCurl.py b/PLC/PyCurl.py index 8352fd0c..032ab755 100644 --- a/PLC/PyCurl.py +++ b/PLC/PyCurl.py @@ -5,7 +5,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id$ +# $Id: PyCurl.py 5574 2007-10-25 20:33:17Z thierry $ # import os @@ -68,9 +68,9 @@ class PyCurlTransport(xmlrpclib.Transport): (errcode, errmsg) = err if errcode == 60: - raise Exception, "SSL certificate validation failed" + raise Exception, "PyCurl: SSL certificate validation failed" elif errcode != 200: - raise Exception, "HTTP error %d" % errcode + raise Exception, "PyCurl: HTTP error %d -- %r" % (errcode,errmsg) # Parse response p, u = self.getparser()