Skip to content

chore: improve error message on adding existing org_member #13621

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

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Jun 20, 2024

Error changed from:

$ coder organizations members add member
Encountered an error running "coder organizations members add", see "coder organizations members add --help" for more information
error: Trace=[could not add member to organization: ]
An internal server error occurred.
pq: duplicate key value violates unique constraint "organization_members_pkey"

To

$ coder organizations members add member
Encountered an error running "coder organizations members add", see "coder organizations members add --help" for more information
error: Trace=[could not add member to organization: ]
Organization member already exists in this organization

@Emyrk Emyrk requested a review from f0ssel June 20, 2024 22:06
@Emyrk Emyrk merged commit 2ef2f97 into main Jun 20, 2024
28 checks passed
@Emyrk Emyrk deleted the stevenmasley/member_already_exists branch June 20, 2024 23:05
@github-actions github-actions bot locked and limited conversation to collaborators Jun 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants