[projects/pld-builder.new] - more verbose error reporting

baggins baggins at pld-linux.org
Fri Oct 25 08:31:27 CEST 2013


commit dac46a1f0630799dc5501a72ecfb46fb19103c20
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Fri Oct 25 08:31:03 2013 +0200

    - more verbose error reporting

 PLD_Builder/rpm_builder.py | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/PLD_Builder/rpm_builder.py b/PLD_Builder/rpm_builder.py
index 65a4cbc..9cf80a8 100644
--- a/PLD_Builder/rpm_builder.py
+++ b/PLD_Builder/rpm_builder.py
@@ -114,6 +114,14 @@ def fetch_src(r, b):
                 b.log_line("unable to connect to %s... trying again" % (src_url))
                 continue
             else:
+                try:
+                    print "error.errno: %s" % str(error.errno)
+                except Exception, e:
+                    print "error.errno: exception %s" % e
+                try:
+                    print "error.reason %s" % str(error.reason)
+                except Exception, e:
+                    print "error.reason exception %s" % e
                 raise
 
     o = chroot.popen("cat > %s" % b.src_rpm, mode = "w")
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/dac46a1f0630799dc5501a72ecfb46fb19103c20



More information about the pld-cvs-commit mailing list