Skip to content

Commit e77b2be

Browse files
author
ehennum
committed
fixup on error branches #972
1 parent 89acedc commit e77b2be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

marklogic-client-api/src/main/java/com/marklogic/client/impl/OkHttpServices.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5547,8 +5547,7 @@ private void checkStatus(Response response) {
55475547
MediaType mediaType = MediaType.parse(response.header(HEADER_CONTENT_TYPE));
55485548
if ( "json".equals(mediaType.subtype()) ) {
55495549
failure = extractErrorFields(response);
5550-
}
5551-
if ( statusCode == STATUS_UNAUTHORIZED ) {
5550+
} else if ( statusCode == STATUS_UNAUTHORIZED ) {
55525551
failure = new FailedRequest();
55535552
failure.setMessageString("Unauthorized");
55545553
failure.setStatusString("Failed Auth");

0 commit comments

Comments
 (0)