Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expect with traces shows line of code on failure #791

Merged
merged 10 commits into from
Jan 4, 2024

Conversation

MicroProofs
Copy link
Member

@MicroProofs MicroProofs commented Jan 3, 2024

expect can error intentionally and it will automatically trace something; though the current error message is a bit cryptic.

This PR embeds original source code as trace akin to the ? operator on fail. Additionally if the validator's datum or redeemer types do not match the expected structure, datum / redeemer name is output on fail.

@MicroProofs MicroProofs requested a review from a team as a code owner January 3, 2024 21:18
@MicroProofs MicroProofs changed the title Add better expect messages Expect with traces shows line of code on failure Jan 3, 2024
@MicroProofs MicroProofs merged commit 30a6b77 into main Jan 4, 2024
2 checks passed
@MicroProofs MicroProofs deleted the add-better-expect-messages branch January 4, 2024 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🚀 Released
Development

Successfully merging this pull request may close these issues.

2 participants