[PATCH] Make the ProgramError class printable.
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
206e587cb8
commit
4e48fe3f1c
@ -46,6 +46,9 @@ class ProgramError(Exception):
|
|||||||
self.progStr = progStr
|
self.progStr = progStr
|
||||||
self.error = error
|
self.error = error
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return self.progStr + ': ' + self.error
|
||||||
|
|
||||||
addDebug('runProgram')
|
addDebug('runProgram')
|
||||||
def runProgram(prog, input=None, returnCode=False, env=None, pipeOutput=True):
|
def runProgram(prog, input=None, returnCode=False, env=None, pipeOutput=True):
|
||||||
debug('runProgram prog:', str(prog), 'input:', str(input))
|
debug('runProgram prog:', str(prog), 'input:', str(input))
|
||||||
|
Loading…
Reference in New Issue
Block a user