diff --git a/components/org.wso2.carbon.identity.api.user.recovery/org.wso2.carbon.identity.rest.api.user.recovery.v2/src/main/java/org/wso2/carbon/identity/rest/api/user/recovery/v2/impl/core/utils/RecoveryUtil.java b/components/org.wso2.carbon.identity.api.user.recovery/org.wso2.carbon.identity.rest.api.user.recovery.v2/src/main/java/org/wso2/carbon/identity/rest/api/user/recovery/v2/impl/core/utils/RecoveryUtil.java index ebe0b101f..7df73b626 100644 --- a/components/org.wso2.carbon.identity.api.user.recovery/org.wso2.carbon.identity.rest.api.user.recovery.v2/src/main/java/org/wso2/carbon/identity/rest/api/user/recovery/v2/impl/core/utils/RecoveryUtil.java +++ b/components/org.wso2.carbon.identity.api.user.recovery/org.wso2.carbon.identity.rest.api.user.recovery.v2/src/main/java/org/wso2/carbon/identity/rest/api/user/recovery/v2/impl/core/utils/RecoveryUtil.java @@ -261,7 +261,7 @@ private static String getContext(String tenantDomain, String endpoint, String ba private static ErrorResponse buildErrorResponse(IdentityRecoveryException e, String errorCode, String errorMessage, String errorDescription) { - ErrorResponse errorResponse = getErrorBuilder(errorCode, errorMessage, errorDescription).build(log, e, + ErrorResponse errorResponse = getErrorBuilder(errorCode, errorMessage, errorDescription).build(log, errorMessage); return errorResponse; }