playframework/Play20 — pull request #142 by julienrf (2012-02-25 12:55:47+00:00)
Title: Better error reporting when the initialization of a plugin fails

When a plugin instanciation fails due to an exception thrown in its constructor, this exception is caught by `java.lang.reflect.Constructor.newInstance()` and wrapped in an `InvocationTargetException`.

This patch provides a more useful error message in such cases by showing the stack trace of the underlying exception rather than the `InvocationTargetException`.