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

fix: show better error messages #36

Merged
merged 2 commits into from
Oct 20, 2023
Merged

fix: show better error messages #36

merged 2 commits into from
Oct 20, 2023

Conversation

15r10nk
Copy link
Owner

@15r10nk 15r10nk commented Oct 20, 2023

show the user better error messages when he mixes snapshot operations.

def test_something():
    s = snapshot(5)
    assert 5 <= s
    assert 5 == s


# Error:
# >       assert 5 == s
# E       TypeError: This snapshot cannot be use with `==`, because it was previously used with `x <= snapshot`

@15r10nk 15r10nk force-pushed the error_messages branch 3 times, most recently from 4d7e5ba to 44f2b90 Compare October 20, 2023 10:27
@15r10nk 15r10nk merged commit fb9a8f5 into main Oct 20, 2023
@15r10nk 15r10nk deleted the error_messages branch December 9, 2023 17:34
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.

1 participant