mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-23 06:02:12 +01:00
Add hint to use sudo when creation fail of sheet.
This commit is contained in:
parent
fc4b047958
commit
53978fa86f
1 changed files with 2 additions and 1 deletions
3
cheat
3
cheat
|
@ -163,7 +163,8 @@ class CheatSheets(object):
|
||||||
if os.access(sheet_path, os.W_OK):
|
if os.access(sheet_path, os.W_OK):
|
||||||
subprocess.call(editor + [os.path.join(cs.cheat_dir, cheat)])
|
subprocess.call(editor + [os.path.join(cs.cheat_dir, cheat)])
|
||||||
else:
|
else:
|
||||||
print >> sys.stderr, ("Couldn't create '%s' cheatsheet."
|
print >> sys.stderr, ("Couldn't create '%s' cheatsheet.\n"
|
||||||
|
"Please retry usig sudo."
|
||||||
% cheat)
|
% cheat)
|
||||||
exit(1)
|
exit(1)
|
||||||
except OSError, e:
|
except OSError, e:
|
||||||
|
|
Loading…
Reference in a new issue