broccolijs/broccoli — pull request #152 by wagenet (2014-05-31 00:50:52+00:00)
Title: Better build failure error handling

The current "Build failed" handling can hide relevant error information:

https://github.com/broccolijs/broccoli/blob/7e5048dec8823f937f0d59f57478f5f50559c6c8/lib/cli.js#L53-L59

For instance, UglifyJS has detailed information about parse errors that doesn't get shown by Broccoli.

We could call `toString` on the error, but in this case we'd get a double stack trace since UglifyJS adds the trace to `toString`. I wonder if we should hide the trace by default and then allow for a `--trace` flag. This is common practice in some other libraries.