fixes in strerror code
This commit is contained in:
parent
92903afd4c
commit
33d1536c25
|
@ -1001,9 +1001,12 @@ class Interface:
|
||||||
def save_config(self):
|
def save_config(self):
|
||||||
err_code = parser.write()
|
err_code = parser.write()
|
||||||
if err_code is not None:
|
if err_code is not None:
|
||||||
os.strerror(err_code)
|
strerr = os.strerror(err_code)
|
||||||
# it is good to notify the user, in case he cannot see the output of the console
|
print strerr
|
||||||
dialogs.ErrorDialog(_('Cannot save your preferences')).get_response()
|
# 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)
|
sys.exit(1)
|
||||||
|
|
||||||
def enable_dbus(self):
|
def enable_dbus(self):
|
||||||
|
|
Loading…
Reference in New Issue