Skip to content

Commit

Permalink
Adding more info to Unknown auth token kind error (#24151)
Browse files Browse the repository at this point in the history
  • Loading branch information
FabianMeiswinkel authored Sep 15, 2021
1 parent f81a4df commit 7993d1d
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,12 @@ public static Mono<RxDocumentServiceRequest> createAsync(
break;

default:
String unknownAuthToken = "Unknown authorization token kind for read request";
String unknownAuthToken =
"Unknown authorization token kind '" + originalRequestTokenType + "' for read request";
assert false : unknownAuthToken;
logger.error(unknownAuthToken);
throw Exceptions.propagate(new InternalServerErrorException(RMResources.InternalServerError));
throw Exceptions.propagate(
new InternalServerErrorException(unknownAuthToken + " - " + RMResources.InternalServerError));
}

if (!hasAadToken) {
Expand Down

0 comments on commit 7993d1d

Please sign in to comment.