projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
206e587
)
[PATCH] Make the ProgramError class printable.
author
Fredrik Kuivinen
<freku045@student.liu.se>
Mon, 12 Sep 2005 21:31:56 +0000
(23:31 +0200)
committer
Junio C Hamano
<junkio@cox.net>
Mon, 12 Sep 2005 21:54:00 +0000
(14:54 -0700)
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitMergeCommon.py
patch
|
blob
|
history
diff --git
a/gitMergeCommon.py
b/gitMergeCommon.py
index
7e7f317
..
ce9694b
100644
(file)
--- 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))