Wirebox constructor errors swallow the whole stack trace


If a component throws an exception during initialization while Wirebox is building it, you get a stack trace like this:

Only one line in there is useful: the detail line pointing to the actual line number of the error.

I understand that CF doesn't let you nest exceptions and that this situation is not without some good cause, but even so I think it'd be useful to change the behavior here. Every Builder.cfc exception I've seen doesn't tell me anything very useful, except that the error was thrown during the building process – which is certainly useful. But that's one line of useful stuff that I want. The whole rest of the stack trace I can do without.

Is it possible to reverse the behavior here, so that we get the one line of 'by the way, this was Builder.cfc' but the rest of the trace is the actual, underlying error in the component I was trying to build?


Brad Wood


Samuel W. Knowlton



Fix versions