1
0
mirror of https://github.com/cheat/cheat.git synced 2025-05-28 10:57:06 +02:00

Add hint to use sudo when creation fail of sheet.

This commit is contained in:
0rax 2013-10-11 18:56:03 +02:00
parent fc4b047958
commit 53978fa86f

3
cheat

@ -163,7 +163,8 @@ class CheatSheets(object):
if os.access(sheet_path, os.W_OK):
subprocess.call(editor + [os.path.join(cs.cheat_dir, cheat)])
else:
print >> sys.stderr, ("Couldn't create '%s' cheatsheet."
print >> sys.stderr, ("Couldn't create '%s' cheatsheet.\n"
"Please retry usig sudo."
% cheat)
exit(1)
except OSError, e: