From: Bernie Innocenti Date: Wed, 8 Apr 2009 21:56:31 +0000 (+0200) Subject: Beautify post-edit hook error message X-Git-Tag: v4.0~9^2~7 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=e7014a267c2573629307cf426d591c8a39d34b24;p=geekigeeki.git Beautify post-edit hook error message --- 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: