chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3092323
)
systemadm: report GLib.Error only to stderr
author
Michal Schmidt
<mschmidt@redhat.com>
Sat, 2 Jul 2011 23:47:21 +0000
(
01:47
+0200)
committer
Michal Schmidt
<mschmidt@redhat.com>
Sat, 2 Jul 2011 23:51:09 +0000
(
01:51
+0200)
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
src/systemadm.vala
patch
|
blob
|
history
diff --git
a/src/systemadm.vala
b/src/systemadm.vala
index c262794cb719066dfb7312ef907d9335aac49fc7..d45ec64ca45048de4beaa3b8a8d1e85bdbb2620d 100644
(file)
--- 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) {
- s
how_error(
e.message);
+ s
tderr.printf("%s\n",
e.message);
}
return 0;