From: Michal Schmidt Date: Sat, 2 Jul 2011 23:47:21 +0000 (+0200) Subject: systemadm: report GLib.Error only to stderr X-Git-Tag: v30~61 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=b8590c197deceab623d37dbb95e30eec9cf47d14 systemadm: report GLib.Error only to stderr When a GLib.Error happens, it is likely that showing a message box would fail too. https://bugzilla.redhat.com/show_bug.cgi?id=716663 --- diff --git a/src/systemadm.vala b/src/systemadm.vala index c262794cb..d45ec64ca 100644 --- a/src/systemadm.vala +++ b/src/systemadm.vala @@ -1011,7 +1011,7 @@ int main(string[] args) { } catch (IOError e) { show_error(e.message); } catch (GLib.Error e) { - show_error(e.message); + stderr.printf("%s\n", e.message); } return 0;