diff --git a/src/main/java/uk/gov/hmcts/darts/arm/rpo/impl/ArmRpoApiImpl.java b/src/main/java/uk/gov/hmcts/darts/arm/rpo/impl/ArmRpoApiImpl.java index 73fb503bed..122f828fde 100644 --- a/src/main/java/uk/gov/hmcts/darts/arm/rpo/impl/ArmRpoApiImpl.java +++ b/src/main/java/uk/gov/hmcts/darts/arm/rpo/impl/ArmRpoApiImpl.java @@ -710,9 +710,8 @@ private void handleResponseStatus(UserAccountEntity userAccount, BaseRpoResponse armRpoExecutionDetailEntity, userAccount); } } catch (IllegalArgumentException e) { - throw handleFailureAndCreateException(errorMessage.append("ARM RPO API response status is invalid - ") - .append(baseRpoResponse).toString(), - armRpoExecutionDetailEntity, userAccount); + log.error(errorMessage.append("ARM RPO API response status is invalid - ").append(baseRpoResponse).toString(), e); + throw handleFailureAndCreateException(errorMessage.toString(), armRpoExecutionDetailEntity, userAccount); } }