RED-4789 - Uploading an invalid digital signature certificate returns error code 500
- return BadRequestException instead of InternalServerErrorException
This commit is contained in:
parent
d395724f73
commit
f541ac2ab8
@ -40,7 +40,7 @@ public class DigitalSignatureKmsService {
|
||||
if (e.status() == HttpStatus.BAD_REQUEST.value()) {
|
||||
throw new BadRequestException(e.getMessage(), e);
|
||||
}
|
||||
throw new InternalServerErrorException("Could not validate digital KMS signature", e);
|
||||
throw new BadRequestException("Could not validate digital KMS signature", e);
|
||||
}
|
||||
log.info("Digital KMS signature is valid");
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user