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

Commit ed375ba

Browse files
Merge pull request #361 from Unity-Technologies/CDSK-928-add-debug-for-Failure-type
CDSK-928 - add debug for Failure.type
2 parents 10a238d + 8cac36c commit ed375ba

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

master/buildbot/process/buildstep.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,10 @@ def failed(self, why):
806806
try:
807807
self.addCompleteLog("err.text", why.getTraceback())
808808
self.addHTMLLog("err.html", formatFailure(why))
809+
except AttributeError:
810+
klog.err_json(
811+
Failure(), "DEBUG formatting exc. why.type: %s %s" % (why.type, type(why.type))
812+
)
809813
except Exception:
810814
klog.err_json(Failure(), "error while formatting exceptions")
811815

0 commit comments

Comments
 (0)