From 8d53282f0bae0c99a2d7acd98c390b5fdbd14b15 Mon Sep 17 00:00:00 2001 From: Thisara-Welmilla Date: Thu, 19 Dec 2024 22:07:29 +0530 Subject: [PATCH] Improve error messages. --- .../java/org/wso2/carbon/idp/mgt/dao/IdPManagementFacade.java | 2 +- .../org/wso2/carbon/idp/mgt/util/IdPManagementConstants.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/dao/IdPManagementFacade.java b/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/dao/IdPManagementFacade.java index 8c791c492851..0ec49882dacf 100644 --- a/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/dao/IdPManagementFacade.java +++ b/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/dao/IdPManagementFacade.java @@ -206,7 +206,7 @@ public void deleteIdPs(int tenantId) throws IdentityProviderManagementException deleteEndpointConfig(idp, IdentityTenantUtil.getTenantDomain(tenantId)); } } catch (IdentityProviderManagementException e) { - // Error will not be thrown, since the IDPs is already deleted. But there will be stale actions. + // Error will not be thrown, since the IdPs is already deleted. But there will be stale actions. LOG.warn(IdPManagementConstants.WarningMessage.WARN_STALE_IDP_ACTIONS); } } diff --git a/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/util/IdPManagementConstants.java b/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/util/IdPManagementConstants.java index 9debd70dcce6..4ec8f632a049 100644 --- a/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/util/IdPManagementConstants.java +++ b/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/util/IdPManagementConstants.java @@ -606,9 +606,9 @@ public static class SQLQueries { public static class WarningMessage { - public static final String WARN_STALE_IDP_ACTION = "The %s Identity Provider was deleted, but an error " + + public static final String WARN_STALE_IDP_ACTION = "The Identity Provider: %s is deleted, but an error " + "occurred while deleting its associated action."; - public static final String WARN_STALE_IDP_ACTIONS = "The Identity Providers was deleted, but an error " + + public static final String WARN_STALE_IDP_ACTIONS = "Identity Providers are deleted, but an error " + "occurred while deleting their associated actions."; }