From: Fredrik Kuivinen Date: Mon, 12 Sep 2005 21:31:56 +0000 (+0200) Subject: [PATCH] Make the ProgramError class printable. X-Git-Tag: v0.99.7~63 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4e48fe3f1c42519f1aad92176489eeb174a319c0;p=git.git [PATCH] Make the ProgramError class printable. Signed-off-by: Fredrik Kuivinen Signed-off-by: Junio C Hamano --- diff --git a/gitMergeCommon.py b/gitMergeCommon.py index 7e7f3171..ce9694b1 100644 --- a/gitMergeCommon.py +++ b/gitMergeCommon.py @@ -46,6 +46,9 @@ class ProgramError(Exception): self.progStr = progStr self.error = error + def __str__(self): + return self.progStr + ': ' + self.error + addDebug('runProgram') def runProgram(prog, input=None, returnCode=False, env=None, pipeOutput=True): debug('runProgram prog:', str(prog), 'input:', str(input))