[Xfce4-commits] <postler:master> Only render unknown errors in debug mode
Christian Dywan
noreply at xfce.org
Sat Feb 19 00:18:02 CET 2011
Updating branch refs/heads/master
to b46fd7a0a69a2fb82dfcbc292645f14217ce818f (commit)
from 0930baa144a3c991d63de237e02e3a1db79bde33 (commit)
commit b46fd7a0a69a2fb82dfcbc292645f14217ce818f
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Feb 19 00:01:31 2011 +0100
Only render unknown errors in debug mode
Non-understandable error messages are only useful for debugging
and will appear if POSTLER_DEBUG=1 is set.
postler/postler-bureau.vala | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/postler/postler-bureau.vala b/postler/postler-bureau.vala
index 223d20e..0ac9846 100644
--- a/postler/postler-bureau.vala
+++ b/postler/postler-bureau.vala
@@ -467,6 +467,7 @@ public class Postler.Bureau : Gtk.Window {
if (error_message == null)
return;
+ unowned string? debug = Environment.get_variable ("POSTLER_DEBUG");
if (error_message.has_prefix ("PSTL/CERT/")) {
var infobar = show_fetch_error_infobar (account,
_("Can't verify mail server authenticity."));
@@ -494,10 +495,12 @@ public class Postler.Bureau : Gtk.Window {
error_text = _("Folder \"%s\" is in invalid state.").printf (folder);
else if (error_id == "BADUID")
error_text = _("Failed to update folder \"%s\".").printf (folder);
+ else if (debug != "1")
+ return;
var infobar = show_fetch_error_infobar (account, error_text);
infobar.set_message_type (Gtk.MessageType.WARNING);
}
- else
+ else if (debug == "1")
show_fetch_error_infobar (account, error_message);
}
More information about the Xfce4-commits
mailing list