Skip to content

Commit

Permalink
Update error message variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
ashanthamara committed Jul 22, 2024
1 parent c47a5bd commit 77341e9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

import javax.ws.rs.core.Response;

import static org.wso2.carbon.identity.action.management.constant.ActionMgtConstants.ErrorMessages.ERROR_NO_ACTION_CONFIGURED_ON_GIVEN_ID;
import static org.wso2.carbon.identity.action.management.constant.ActionMgtConstants.ErrorMessages.ERROR_NO_ACTION_CONFIGURED_ON_GIVEN_ACTION_TYPE_AND_ID;
import static org.wso2.carbon.identity.api.server.action.management.v1.constants.ActionMgtEndpointConstants.ACTION_PATH_COMPONENT;
import static org.wso2.carbon.identity.api.server.action.management.v1.constants.ActionMgtEndpointConstants.PATH_CONSTANT;
import static org.wso2.carbon.identity.api.server.common.Constants.ERROR_CODE_DELIMITER;
Expand Down Expand Up @@ -77,7 +77,7 @@ public static APIError handleActionMgtException(ActionMgtException e) {
Response.Status status = Response.Status.INTERNAL_SERVER_ERROR;
if (e instanceof ActionMgtClientException) {
LOG.debug(e.getMessage(), e);
if (ERROR_NO_ACTION_CONFIGURED_ON_GIVEN_ID.getCode().equals(e.getErrorCode())) {
if (ERROR_NO_ACTION_CONFIGURED_ON_GIVEN_ACTION_TYPE_AND_ID.getCode().equals(e.getErrorCode())) {
status = Response.Status.NOT_FOUND;
} else {
status = Response.Status.BAD_REQUEST;
Expand Down

0 comments on commit 77341e9

Please sign in to comment.