Improved exception reporting in gradle plugin.