Following on from the issue raised by Kristian Meier concerning error reporting, I've made a couple of updates which improve the failure information supplied to the log. Basically I removed several intermediate exceptions that were not add value. In the fail case Kristian provided, the error report now looks like the following:


$ merlin target\*.jar -execute

 [INFO   ] (nested.hello): starting
 [ERROR  ] (sys): Root block installation failure.
 -------------------------------------------------------------------
 Exception: org.apache.avalon.merlin.kernel.KernelException
 Message: Root block deployment failure.

 Cause: org.apache.avalon.merlin.block.BlockException
 Message: Composite deployment failure in: [block://]

 Cause: org.apache.avalon.merlin.block.BlockException
 Message: Composite deployment failure in: [block://nested/]

 Cause: org.apache.avalon.assembly.lifecycle.DeploymentException
 Message: Component deployment failure in: [appliance://nested/hello]

 Cause: java.lang.IllegalStateException
 Message: force-error

This is about half the length of the previouse report with no loss of information.

Cheers, Steve.

--

Stephen J. McConnell
mailto:[EMAIL PROTECTED]
http://www.osm.net

Sent via James running under Merlin as an NT service.
http://avalon.apache.org/sandbox/merlin




--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to