Skip to content

Fix error message when PollDescriptor can't transfer fd#15663

Merged
straight-shoota merged 2 commits intomasterfrom
fix/poll-descriptor-transfer-error-message
Apr 15, 2025
Merged

Fix error message when PollDescriptor can't transfer fd#15663
straight-shoota merged 2 commits intomasterfrom
fix/poll-descriptor-transfer-error-message

Conversation

@ysbaddaden
Copy link
Collaborator

Removes the BUG: prefer in the RuntimeError message when we can't transfer a fd to another event loop.

The prefix usually denotes a broken expectation in the stdlib implementation, which means the stdlib did a mistake and we shall fix it, but this isn't the case here.

An example for a BUG is just a few lines above to catch trying to transfer to the same event loop (it makes no sense).

Removes the `BUG:` prefer in the RuntimeError message when we can't transfer a `fd` to another event loop.

The prefix usually denotes a broken expectation in the stdlib implementation, which means the stdlib did a mistake and we shall fix it, but this isn't the case here.

An example for a BUG is just a few lines above to catch trying to transfer to the _same_ event loop (it makes no sense).
@ysbaddaden ysbaddaden added this to the 1.16.1 milestone Apr 15, 2025
@straight-shoota straight-shoota changed the title Fix: PollDescriptor can't transfer error message Fix error message when PollDescriptor can't transfer fd Apr 15, 2025
@straight-shoota straight-shoota merged commit 0122e33 into master Apr 15, 2025
34 checks passed
@straight-shoota straight-shoota deleted the fix/poll-descriptor-transfer-error-message branch April 15, 2025 16:17
@straight-shoota straight-shoota added the kind:bug A bug in the code. Does not apply to documentation, specs, etc. label Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:stdlib:runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants