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

feat: add #[track_caller] to unwraps for better panic messages #212

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

m4tx
Copy link
Member

@m4tx m4tx commented Feb 27, 2025

This attribute causes the panic message to point to the location of the caller, rather than to the location where the panic is. This makes more useful panic messages, as they will point to users' codes rather than the internal Cot code.

This attribute causes the panic message to point to the location of the
caller, rather than to the location where the panic is. This makes more
useful panic messages, as they will point to users' codes rather than
the internal Cot code.
@m4tx m4tx requested a review from seqre February 27, 2025 06:10
Copy link

codecov bot commented Feb 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Flag Coverage Δ
rust 78.72% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cot/src/db.rs 76.66% <ø> (ø)
cot/src/db/relations.rs 83.33% <ø> (ø)
cot/src/form.rs 49.23% <ø> (ø)

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