From 53978fa86fbaf6665ae16f09383655af0aeda078 Mon Sep 17 00:00:00 2001 From: 0rax Date: Fri, 11 Oct 2013 18:56:03 +0200 Subject: [PATCH] Add hint to use sudo when creation fail of sheet. --- cheat | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cheat b/cheat index 01399b7..120b764 100755 --- a/cheat +++ b/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: