From 9628b599780b2f003fe21a600c58c82f0d12097c Mon Sep 17 00:00:00 2001 From: William Woodall Date: Thu, 24 Jan 2013 14:50:31 -0800 Subject: [PATCH] cmi now instructs the user how to reproduce errors --- python/catkin/builder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/catkin/builder.py b/python/catkin/builder.py index edc5bc778..e8777b154 100644 --- a/python/catkin/builder.py +++ b/python/catkin/builder.py @@ -594,6 +594,10 @@ def build_workspace_isolated( ('KeyboardInterrupt' if isinstance(e, KeyboardInterrupt) else str(e)) ) + if isinstance(e, subprocess.CalledProcessError): + cmd = ' '.join(e.cmd) if isinstance(e.cmd, list) else e.cmd + print(fmt("\n@{rf}Reproduce this error by running:")) + print(fmt("@{gf}@!==> @|") + cmd + "\n") sys.exit('Command failed, exiting.')