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
1 changed files with 2 additions and 0 deletions

View File

@ -257,6 +257,8 @@ def main():
if exc_str: if exc_str:
short_exc_info += ": " + exc_str short_exc_info += ": " + exc_str
lines = ["Terminating with exception ("+short_exc_info+")\n"] 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"): if hasattr(exc, "parent_traceback"):
lines += exc.parent_traceback lines += exc.parent_traceback
lines += traceback.format_exception_only(type(exc), exc) lines += traceback.format_exception_only(type(exc), exc)