Skip to content

refactor: provide clearer panic message when link is missing#261

Merged
mcches merged 1 commit intotokio-rs:mainfrom
tneely:main
Dec 29, 2025
Merged

refactor: provide clearer panic message when link is missing#261
mcches merged 1 commit intotokio-rs:mainfrom
tneely:main

Conversation

@tneely
Copy link
Contributor

@tneely tneely commented Dec 29, 2025

Getting an IpAddr wrong in turmoil when trying to do a partition or hold
gives a somewhat unhelpful panic message: "IndexMap: key not found".
Panicking is fine - turmoil is a simulation testing library after all -
but it is difficult to debug based on the error message.

Getting an IpAddr wrong in turmoil when trying to do a partition or hold
gives a somewhat unhelpful panic message: "IndexMap: key not found".
Panicking is fine - turmoil is a simulation testing library after all -
but it is difficult to debug based on the error message.
Copy link
Contributor

@mcches mcches left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution!

@mcches mcches merged commit 8c8330b into tokio-rs:main Dec 29, 2025
6 checks passed
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.

2 participants