[GRADLE-2737] Improve exception messages by avoiding redundant "Failed to notify x listener" Created: 05/Apr/13  Updated: 21/Sep/13  Resolved: 21/Sep/13

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 1.9-rc-1

Type: Bug
Reporter: Szczepan Faber Assignee: Unassigned
Resolution: Fixed Votes: 0


Let's say my custom implementation of TaskExecutionListener throws a new GradleException("This build shall fail!"). This is what I see in the console:

* What went wrong:
Failed to notify task execution listener.
> Failed to notify task execution listener.
   > This build shall fail!

Here's what I would prefer to see:

* What went wrong:
This build shall fail!

Generated at Wed Jun 30 12:30:07 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.