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

Commit

Permalink
Fix: lower dpm from errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Rebecca Dong committed Oct 8, 2020
1 parent 21133f4 commit a7b1873
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@
import com.nike.backstopper.apierror.ApiError;
import com.nike.backstopper.apierror.ApiErrorBase;
import com.nike.cerberus.error.DefaultApiError;
import java.util.UUID;

public final class CustomApiError {

public static ApiError createCustomApiError(DefaultApiError error, final String message) {
return new ApiErrorBase(
"custom-error-wrapper-" + UUID.randomUUID().toString(),
error.getName(),
error.getErrorCode(),
error.getMessage() + " " + message,
error.getHttpStatusCode());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public AuthTokenResponse authenticate(
authResponse = authenticationService.stsAuthenticate(iamPrincipalArn);
} catch (Exception e) {
auditLoggingFilterDetails.setAction("Failed to authenticate with AWS IAM STS Auth");
throw e; // TODO, throw a Backstopper error here
throw e;
}

auditLoggingFilterDetails.setAction("Successfully authenticated with AWS IAM STS Auth");
Expand Down

0 comments on commit a7b1873

Please sign in to comment.