From 33d1536c2565895a22efc7daee02c1d290c5c062 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Tue, 23 Aug 2005 09:32:44 +0000 Subject: [PATCH] fixes in strerror code --- src/gajim.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/gajim.py b/src/gajim.py index b2ad2b42d..b6547a0c6 100755 --- a/src/gajim.py +++ b/src/gajim.py @@ -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):