diff --git a/artiq/master/worker_impl.py b/artiq/master/worker_impl.py index cb12ab67d..649ec94be 100644 --- a/artiq/master/worker_impl.py +++ b/artiq/master/worker_impl.py @@ -255,7 +255,7 @@ def main(): short_exc_info = type(exc).__name__ exc_str = str(exc) if exc_str: - short_exc_info += ": " + exc_str + short_exc_info += ": " + exc_str.splitlines()[0] lines = ["Terminating with exception ("+short_exc_info+")\n"] if hasattr(exc, "artiq_core_exception"): lines.append(str(exc.artiq_core_exception))