Skip to content

Conversation

jjbayer
Copy link
Member

@jjbayer jjbayer commented Oct 2, 2025

Add a verbose error message to InvalidMessage to make it easier to debug failures.

Comment on lines +127 to +129
.map(|e| format!("{}: {}", e.instance_path, e.to_string()))
.collect::<Vec<_>>()
.join(". ")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's probably better ways to do this than force everything into a string, but this was the best I could come up with in a reasonable amount of time.

@jjbayer jjbayer marked this pull request as ready for review October 2, 2025 09:06
@jjbayer jjbayer requested review from a team as code owners October 2, 2025 09:06
@jjbayer jjbayer requested review from a team and Swatinem October 2, 2025 09:06
@jjbayer jjbayer merged commit 25e653a into main Oct 2, 2025
18 checks passed
@jjbayer jjbayer deleted the feat/verbose-errors branch October 2, 2025 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants