src/reportlab/lib/utils.py
changeset 3429 faa6425d8806
parent 3355 cc00d31bc99e
child 3437 65fc93c4c0c3
--- a/src/reportlab/lib/utils.py	Fri Sep 03 09:38:52 2010 +0000
+++ b/src/reportlab/lib/utils.py	Fri Sep 03 09:39:34 2010 +0000
@@ -1132,7 +1132,10 @@
                 msg=msg.encode(enc)
             else:
                 msg = str(msg)
-        A[e] += msg
+        if isinstance(v,IOError) and hasattr(v,'strerror'):
+            v.strerror = msg+'\n'+v.strerror
+        else:
+            A[e] += msg
     else:
         A.append(msg)
     v.args = tuple(A)