Skip to content

Commit

Permalink
fixup! Do not start a workspace on SCM unauthorised error
Browse files Browse the repository at this point in the history
  • Loading branch information
vinokurig authored and ibuziuk committed Nov 3, 2023
1 parent 22dc0be commit 3ca3f0b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ export const actionCreators: ActionCreators = {

getDevWorkspaceClient().checkForDevWorkspaceError(startingWorkspace);
} catch (e) {
// Skip unauthorised errors. The page is redirecting to an SCM authentication page.
if (common.helpers.errors.includesAxiosResponse(e) && isOAuthResponse(e.response.data)) {
return;
}
Expand Down

0 comments on commit 3ca3f0b

Please sign in to comment.