Skip to content

Commit

Permalink
fix(gms) Propagate cache exception upstream (#5381)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro93 authored Jul 12, 2022
1 parent e2a0fdd commit 5011c2f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public TokenClaims validateAccessToken(@Nonnull String accessToken) throws Token
this.revokeAccessToken(hash(accessToken));
throw e;
} catch (final ExecutionException e) {
throw new TokenException("Failed to validate DataHub token: Unable to load token information from store");
throw new TokenException("Failed to validate DataHub token: Unable to load token information from store", e);
}
}

Expand All @@ -174,7 +174,7 @@ public void revokeAccessToken(@Nonnull String hashedToken) throws TokenException
return;
}
} catch (ExecutionException e) {
throw new TokenException("Failed to validate DataHub token from cache");
throw new TokenException("Failed to validate DataHub token from cache", e);
}
throw new TokenException("Access token no longer exists");
}
Expand Down

0 comments on commit 5011c2f

Please sign in to comment.