improve error reporting on booh-backend unexpected error
authorGuillaume Cottenceau <gcottenc@gmail.com>
Tue, 4 Jan 2011 21:07:55 +0000 (22:07 +0100)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Tue, 4 Jan 2011 21:07:55 +0000 (22:07 +0100)
bin/booh

index 4a4f660..25d501f 100644 (file)
--- a/bin/booh
+++ b/bin/booh
@@ -2203,7 +2203,9 @@ def call_backend(cmd, waitmsg, mode, params)
                 #- say nothing, user aborted
             else
                 gtk_thread_protect { show_popup($main_window,
-                                                utf8(_("There was something wrong, sorry:\n\n%s") % $diemsg)) }
+                                                utf8($diemsg ? _("Unexpected internal error, sorry:\n\n%s") % $diemsg :
+                                                               _("Unexpected internal error, sorry.\nCheck console for error message."))) }
+                $diemsg = nil
             end
         else
             exec(cmd)