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
This commit is contained in:
Michal Schmidt 2011-07-03 01:47:21 +02:00
parent 30923233b3
commit b8590c197d

View file

@ -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;