Skip to content

Commit

Permalink
update the error type
Browse files Browse the repository at this point in the history
  • Loading branch information
aubin-tchoi committed Jan 10, 2025
1 parent 90a130c commit c209b1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion connectors/src/api/update_connector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const _postConnectorUpdateAPIHandler = async (
return apiError(req, res, {
status_code: 401,
api_error: {
type: "connector_authorization_error",
type: "connector_oauth_user_missing_rights",
message: updateRes.error.message,
},
});
Expand Down
1 change: 1 addition & 0 deletions types/src/connectors/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export type ConnectorsAPIErrorType =
| "connector_update_error"
| "connector_update_unauthorized"
| "connector_oauth_target_mismatch"
| "connector_oauth_user_missing_rights"
| "connector_oauth_error"
| "connector_authorization_error"
| "slack_channel_not_found"
Expand Down

0 comments on commit c209b1f

Please sign in to comment.