- merge from PlanetLab Europe
[plcapi.git] / PLC / PyCurl.py
index 9b42905..51b08a3 100644 (file)
@@ -5,7 +5,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: PyCurl.py,v 1.2 2007/09/12 17:52:27 tmack Exp $
+# $Id: PyCurl.py,v 1.3 2007/10/01 20:51:47 tmack Exp $
 #
 
 import os
@@ -70,7 +70,7 @@ class PyCurlTransport(xmlrpclib.Transport):
         if errcode == 60:
             raise Exception, "PyCurl: SSL certificate validation failed"
         elif errcode != 200:
-            raise Exception, "PyCurl: HTTP error %d" % errcode
+           raise Exception, "PyCurl: HTTP error %d -- %r" % (errcode,errmsg)
 
         # Parse response
         p, u = self.getparser()