Skip to content

Conversation

@davidbilge
Copy link
Contributor

DebugAgentEnvironmentPostProcessor throws a RuntimeException with a generic error message if its initialization fails. The causing exception is discarded, which makes error analysis unnecessarily difficult.

Attach the cause to the newly thrown RuntimeExeption.

DebugAgentEnvironmentPostProcessor throws a RuntimeException with a generic error message if its initialization fails. The causing exception is discarded, which makes error analysis unnecessarily difficult.

Attach the cause to the newly thrown RuntimeExeption.
@pivotal-issuemaster
Copy link

@davidbilge Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

@pivotal-issuemaster
Copy link

@davidbilge Thank you for signing the Contributor License Agreement!

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Aug 7, 2020
@wilkinsona wilkinsona changed the title Add exception cause to stack trace when initialization fails When Reactor's debug agent fails to initialize, the cause of the failure is discarded Aug 7, 2020
@wilkinsona wilkinsona added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Aug 7, 2020
@wilkinsona wilkinsona added this to the 2.2.x milestone Aug 7, 2020
@snicoll snicoll self-assigned this Aug 10, 2020
snicoll pushed a commit that referenced this pull request Aug 10, 2020
Prior to this commit, DebugAgentEnvironmentPostProcessor throws a
RuntimeException with a generic error message if its initialization
fails. The causing exception is discarded, which makes error analysis
unnecessarily difficult.

This commit attaches the cause to the newly thrown RuntimeException.

See gh-22777
@snicoll snicoll closed this in 8836dc9 Aug 10, 2020
@snicoll snicoll modified the milestones: 2.2.x, 2.2.10 Aug 10, 2020
@snicoll
Copy link
Member

snicoll commented Aug 10, 2020

@davidbilge thank you for making your first contribution to Spring Boot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants