[Reportbug-commits] [SCM] Reportbug - reports bugs in the Debian distribution branch, master, updated. 6.0-15-g574e365

Sandro Tosi morph at debian.org
Tue Aug 16 23:06:37 UTC 2011


The following commit has been merged in the master branch:
commit 0a57ce662b6508050f587d441a323e3cd343379a
Author: Sandro Tosi <morph at debian.org>
Date:   Tue Aug 16 22:07:26 2011 +0200

    when sending/writing the report fails, output the message in the UI, so also GTK+ and urwid users can see the failure and where the report is saved; thanks to Stefan Monnier for the report; Closes: #626930

diff --git a/debian/changelog b/debian/changelog
index c67f1f4..1e00403 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -22,8 +22,12 @@ reportbug (6.1) UNRELEASED; urgency=low
       the report; Closes: #632377
     - more verbose message when we can't find a package; thanks to Lionel Elie
       Mamane for the report; Closes: #628463
+  * reportbug/submit.py
+    - when sending/writing the report fails, output the message in the UI, so
+      also GTK+ and urwid users can see the failure and where the report is
+      saved; thanks to Stefan Monnier for the report; Closes: #626930
 
- -- Sandro Tosi <morph at debian.org>  Tue, 16 Aug 2011 19:43:24 +0200
+ -- Sandro Tosi <morph at debian.org>  Tue, 16 Aug 2011 22:05:27 +0200
 
 reportbug (6.0) unstable; urgency=low
 
diff --git a/reportbug/submit.py b/reportbug/submit.py
index 882ac34..f735c76 100644
--- a/reportbug/submit.py
+++ b/reportbug/submit.py
@@ -427,7 +427,8 @@ def send_report(body, attachments, mua, fromaddr, sendto, ccaddr, bccaddr,
             fh, msgname = TempFile(prefix=tfprefix, dir=draftpath)
             fh.write(message)
             fh.close()
-            ewrite('Original write failed, wrote bug report to %s\n', msgname)
+            ui.long_message('Error: send/write operation failed, bug report '
+                            'saved to %s\n', msgname)
 
     if mua:
         ewrite("Spawning %s...\n", mua.name)

-- 
Reportbug - reports bugs in the Debian distribution



More information about the Reportbug-commits mailing list