ros/catkin — pull request #470 by wjwwood (2013-07-11 22:29:58+00:00)
Title: Suppress a traceback when a package fails to build

When a package fails in cmi I get something like this:

```
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "./src/catkin/bin/../python/catkin/builder.py", line 722, in build_workspace_isolated
number=index + 1, of=len(ordered_packages)
File "./src/catkin/bin/../python/catkin/builder.py", line 497, in build_package
install, force_cmake, quiet, last_env, cmake_args, make_args + catkin_make_args
File "./src/catkin/bin/../python/catkin/builder.py", line 330, in build_catkin_package
run_command_colorized(cmake_cmd, build_dir, quiet)
File "./src/catkin/bin/../python/catkin/builder.py", line 166, in run_command_colorized
run_command(cmd, cwd, quiet=quiet, colorize=True)
File "./src/catkin/bin/../python/catkin/builder.py", line 198, in run_command
raise subprocess.CalledProcessError(proc.returncode, ' '.join(cmd))
CalledProcessError: Command '/private/tmp/common_tutorials_ws/install_isolated/env.sh cmake /private/tmp/common_tutorials_ws/src/nodelet_core/nodelet_topic_tools -DCATKIN_DEVEL_PREFIX=/private/tmp/common_tutorials_ws/devel_isolated/nodelet_topic_tools -DCMAKE_INSTALL_PREFIX=/private/tmp/common_tutorials_ws/install_isolated' returned non-zero exit status 1
<== Failed to process package 'nodelet_topic_tools':
Command '/private/tmp/common_tutorials_ws/install_isolated/env.sh cmake /private/tmp/common_tutorials_ws/src/nodelet_core/nodelet_topic_tools -DCATKIN_DEVEL_PREFIX=/private/tmp/common_tutorials_ws/devel_isolated/nodelet_topic_tools -DCMAKE_INSTALL_PREFIX=/private/tmp/common_tutorials_ws/install_isolated' returned non-zero exit status 1
```

Which has a traceback in it, when it is obviously a package failure, we should not print the traceback. The result looks like this:

```
-- Configuring incomplete, errors occurred!
<== Failed to process package 'nodelet_topic_tools':
Command '/private/tmp/common_tutorials_ws/install_isolated/env.sh cmake /private/tmp/common_tutorials_ws/src/nodelet_core/nodelet_topic_tools -DCATKIN_DEVEL_PREFIX=/private/tmp/common_tutorials_ws/devel_isolated/nodelet_topic_tools -DCMAKE_INSTALL_PREFIX=/private/tmp/common_tutorials_ws/install_isolated' returned non-zero exit status 1

Reproduce this error by running:
==> /private/tmp/common_tutorials_ws/install_isolated/env.sh cmake /private/tmp/common_tutorials_ws/src/nodelet_core/nodelet_topic_tools -DCATKIN_DEVEL_PREFIX=/private/tmp/common_tutorials_ws/devel_isolated/nodelet_topic_tools -DCMAKE_INSTALL_PREFIX=/private/tmp/common_tutorials_ws/install_isolated

Command failed, exiting.
```