mirror of
https://github.com/gryf/wicd.git
synced 2025-12-20 04:48:00 +01:00
Dump descriptions of error messages to stderr instead of stdout.
This commit is contained in:
@@ -90,13 +90,13 @@ class wrap_exceptions:
|
|||||||
#gobject.source_remove(redraw_tag)
|
#gobject.source_remove(redraw_tag)
|
||||||
loop.quit()
|
loop.quit()
|
||||||
ui.stop()
|
ui.stop()
|
||||||
print "\n"+language['terminated']
|
print >> sys.stderr, "\n"+language['terminated']
|
||||||
#raise
|
#raise
|
||||||
except DBusException:
|
except DBusException:
|
||||||
#gobject.source_remove(redraw_tag)
|
#gobject.source_remove(redraw_tag)
|
||||||
loop.quit()
|
loop.quit()
|
||||||
ui.stop()
|
ui.stop()
|
||||||
print "\n"+language['dbus_fail']
|
print >> sys.stderr,"\n"+language['dbus_fail']
|
||||||
raise
|
raise
|
||||||
except :
|
except :
|
||||||
# Quit the loop
|
# Quit the loop
|
||||||
@@ -105,7 +105,7 @@ class wrap_exceptions:
|
|||||||
# Zap the screen
|
# Zap the screen
|
||||||
ui.stop()
|
ui.stop()
|
||||||
# Print out standard notification:
|
# Print out standard notification:
|
||||||
print "\n" + language['exception']
|
print >> sys.stderr, "\n" + language['exception']
|
||||||
# Flush the buffer so that the notification is always above the
|
# Flush the buffer so that the notification is always above the
|
||||||
# backtrace
|
# backtrace
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
@@ -933,7 +933,7 @@ def setup_dbus(force=True):
|
|||||||
except DBusException:
|
except DBusException:
|
||||||
# I may need to be a little more verbose here.
|
# I may need to be a little more verbose here.
|
||||||
# Suggestions as to what should go here, please?
|
# Suggestions as to what should go here, please?
|
||||||
print language['cannot_connect_to_daemon']
|
print >> sys.stderr, language['cannot_connect_to_daemon']
|
||||||
#raise
|
#raise
|
||||||
# return False # <- Will need soon.
|
# return False # <- Will need soon.
|
||||||
bus = dbusmanager.get_bus()
|
bus = dbusmanager.get_bus()
|
||||||
|
|||||||
Reference in New Issue
Block a user