Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

Commit

Permalink
CDSK-928 - ensure that why.getTraceback will be on Failure object
Browse files Browse the repository at this point in the history
  • Loading branch information
warcholprzemo committed May 14, 2018
1 parent 863aae6 commit 09b0b47
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions master/buildbot/process/buildstep.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,7 @@ def failed(self, why):
if isinstance(why.type, str):
klog.err_json("Failure.type is string: [name: %s] [builder: %s] " %
(self.name, self.build))
why = Failure(why) # ensure CopiedFailure -> Failure
why.type = locate(why.type) or why.type
self.addCompleteLog("err.text", why.getTraceback())
self.addHTMLLog("err.html", formatFailure(why))
Expand Down

0 comments on commit 09b0b47

Please sign in to comment.