2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-29 05:03:34 +08:00

worker: print core device tracebacks. Closes #292

This commit is contained in:
Sebastien Bourdeauducq 2016-02-25 01:25:26 +08:00
parent c3cdce9d02
commit dda0e0846c

View File

@ -257,6 +257,8 @@ def main():
if exc_str:
short_exc_info += ": " + exc_str
lines = ["Terminating with exception ("+short_exc_info+")\n"]
if hasattr(exc, "artiq_core_exception"):
lines.append(str(exc.artiq_core_exception))
if hasattr(exc, "parent_traceback"):
lines += exc.parent_traceback
lines += traceback.format_exception_only(type(exc), exc)