mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
[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 @@ def __init__(self, progStr, error):
|
|||
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))
|
||||
|
|
Loading…
Reference in a new issue