From dda0e0846cb6fe99c2a5c26d2fc9897604dd7bdf Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 25 Feb 2016 01:25:26 +0800 Subject: [PATCH] worker: print core device tracebacks. Closes #292 --- artiq/master/worker_impl.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artiq/master/worker_impl.py b/artiq/master/worker_impl.py index 769bcb17c..cb12ab67d 100644 --- a/artiq/master/worker_impl.py +++ b/artiq/master/worker_impl.py @@ -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)