From e7014a267c2573629307cf426d591c8a39d34b24 Mon Sep 17 00:00:00 2001 From: Bernie Innocenti Date: Wed, 8 Apr 2009 23:56:31 +0200 Subject: [PATCH] Beautify post-edit hook error message --- geekigeeki.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/geekigeeki.py b/geekigeeki.py index eba4467..4fb96cb 100755 --- a/geekigeeki.py +++ b/geekigeeki.py @@ -100,7 +100,7 @@ def send_guru(msg_text, msg_type): print ' Software Failure. Press left mouse button to continue.\n' print msg_text if msg_type == 'error': - print '\n Guru Meditation #DEADBEEF.ABADC0DE' + print '\n Guru Meditation #DEADBEEF.ABADC0DE' print '' try: sendfile(sys.stdout, open('gurumeditation.js', 'rb')) @@ -785,8 +785,7 @@ class Page: output = child.stdout.read() rc = child.wait() if rc: - self.msg_text += "Post-editing hook returned %d.\n" % rc - self.msg_text += 'Command was: ' + ' '.join(cmd) + '\n' + self.msg_text += "Post-editing hook returned %d. Command was:\n'%s'\n" % (rc, "' '".join(cmd)) if output: self.msg_text += 'Output follows:\n' + output else: -- 2.25.1