fixes in strerror code

This commit is contained in:
Nikos Kouremenos 2005-08-23 09:32:44 +00:00
parent 92903afd4c
commit 33d1536c25
1 changed files with 6 additions and 3 deletions

View File

@ -1001,9 +1001,12 @@ class Interface:
def save_config(self):
err_code = parser.write()
if err_code is not None:
os.strerror(err_code)
# it is good to notify the user, in case he cannot see the output of the console
dialogs.ErrorDialog(_('Cannot save your preferences')).get_response()
strerr = os.strerror(err_code)
print strerr
# it is good to notify the user
# in case he cannot see the output of the console
dialogs.ErrorDialog(_('Cannot save your preferences'),
strerr).get_response()
sys.exit(1)
def enable_dbus(self):