Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Treat all OAuth2AccessDeniedException as connection errors.
  • Loading branch information
Nieraj Singh committed Feb 12, 2015
1 parent 09f58a3 commit 1efc71f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -148,7 +148,7 @@ else if (isForbiddenException(error)) {
else if (error.getCause() instanceof OAuth2AccessDeniedException) {
oauthException = (OAuth2AccessDeniedException) error.getCause();
}
if (oauthException != null && oauthException.getHttpErrorCode() == 403) {
if (oauthException != null) {
return NLS.bind(Messages.ERROR_ACCESS_TOKEN, oauthException.getOAuth2ErrorCode());
}
}
Expand Down
Expand Up @@ -61,7 +61,7 @@ protected String getTokenAccessErrorLabel() {
}
}
catch (Throwable e) {
// Don't log as the label may be called multiple times. If the
// Don't log. If the
// server failed to resolve, the request itself
// will fail and will log the error accordingly
}
Expand Down

0 comments on commit 1efc71f

Please sign in to comment.