Skip to content

Bubble-up a proper user error instead of swallowing failed assignment - #2483

Merged
Kobzol merged 1 commit into
rust-lang:masterfrom
Urgau:assign-set_assignee-user-error
Aug 18, 2026
Merged

Bubble-up a proper user error instead of swallowing failed assignment#2483
Kobzol merged 1 commit into
rust-lang:masterfrom
Urgau:assign-set_assignee-user-error

Conversation

@Urgau

@Urgau Urgau commented Aug 17, 2026

Copy link
Copy Markdown
Member

Currently the assign handler is swallowing failed assignment errors from the surrounding control flow, which means that we post the error but still post the assignments messages and update the DB like the assignment successfully happened, while it didn't.

Instead of that, let's return a UserError from the handler so we can properly exit the handler and post only the error.

Fixes #2481

@Urgau
Urgau requested a review from Kobzol August 17, 2026 20:27

@Kobzol Kobzol left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Makes sense, thanks!

View changes since this review

@Kobzol
Kobzol added this pull request to the merge queue Aug 18, 2026
Merged via the queue into rust-lang:master with commit 8df98a1 Aug 18, 2026
3 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.

Welcome message inconsistent with invalid assignee

2 participants