[Commits] (heikki) In case of non-hardhat tool build errors we need
the outputList to show where error happened.
commits at osafoundation.org
commits at osafoundation.org
Thu Aug 26 13:05:15 PDT 2004
Commit by: heikki
Modified files:
hardhat/hardhatutil.py 1.4 1.5
Log message:
In case of non-hardhat tool build errors we need the outputList to show where error happened.
ViewCVS links:
http://cvs.osafoundation.org/index.cgi/hardhat/hardhatutil.py.diff?r1=text&tr1=1.4&r2=text&tr2=1.5
Index: hardhat/hardhatutil.py
diff -u hardhat/hardhatutil.py:1.4 hardhat/hardhatutil.py:1.5
--- hardhat/hardhatutil.py:1.4 Sun Aug 31 21:22:04 2003
+++ hardhat/hardhatutil.py Thu Aug 26 13:05:13 2004
@@ -80,7 +80,6 @@
def executeCommandReturnOutput(args):
-
args[0] = escapeSpaces(args[0])
args = map(escapeBackslashes, args)
@@ -98,7 +97,7 @@
exitCode = output.close()
if exitCode != None:
- raise ExternalCommandError, exitCode
+ raise ExternalCommandErrorWithOutputList, [exitCode, outputList]
return outputList
@@ -124,6 +123,15 @@
self.args = args
+class ExternalCommandErrorWithOutputList(ExternalCommandError):
+ def __init__(self,args=None):
+ if args:
+ self.args = args[0]
+ self.outputList = args[1]
+ else:
+ self.args = args
+ self.outputList = []
+
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Module import functions
More information about the Commits
mailing list