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

Commit

Permalink
remove custom error name to lower metric dpm
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca Dong committed Oct 7, 2020
1 parent 77d12fd commit d453117
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,7 @@ private EncryptedAuthDataWrapper authenticate(
} catch (JsonProcessingException e) {
String msg = "Failed to write IAM role authentication response as JSON for encrypting.";
throw ApiException.newBuilder()
.withApiErrors(
CustomApiError.createCustomApiError(DefaultApiError.INTERNAL_SERVER_ERROR, msg))
.withApiErrors(DefaultApiError.INTERNAL_SERVER_ERROR)
.withExceptionCause(e)
.withExceptionMessage(msg)
.build();
Expand Down Expand Up @@ -451,8 +450,7 @@ protected byte[] validateAuthPayloadSizeAndTruncateIfLargerThanMaxKmsSupportedSi
} catch (JsonProcessingException e) {
String msg = "Failed to write IAM role authentication response as JSON for encrypting.";
throw ApiException.newBuilder()
.withApiErrors(
CustomApiError.createCustomApiError(DefaultApiError.INTERNAL_SERVER_ERROR, msg))
.withApiErrors(DefaultApiError.INTERNAL_SERVER_ERROR)
.withExceptionCause(e)
.withExceptionMessage(msg)
.build();
Expand Down

0 comments on commit d453117

Please sign in to comment.