diff --git a/acl/src/main/java/org/apache/rocketmq/acl/plain/PlainPermissionManager.java b/acl/src/main/java/org/apache/rocketmq/acl/plain/PlainPermissionManager.java index 97bd6bc857859cbbcff185dd60e5094ea41ae8f2..245bd9e750310ce11a2d1f75b1bde8e1cdd0eb0f 100644 --- a/acl/src/main/java/org/apache/rocketmq/acl/plain/PlainPermissionManager.java +++ b/acl/src/main/java/org/apache/rocketmq/acl/plain/PlainPermissionManager.java @@ -134,7 +134,7 @@ public class PlainPermissionManager { Map aclAccessConfigMap = AclUtils.getYamlDataObject(fileHome + File.separator + fileName, Map.class); if (aclAccessConfigMap == null || aclAccessConfigMap.isEmpty()) { - throw new AclException(String.format("%s file not found or isEmpty", fileHome + File.separator + fileName)); + throw new AclException(String.format("%s file not found or empty", fileHome + File.separator + fileName)); } List> accounts = (List>) aclAccessConfigMap.get(AclConstants.CONFIG_ACCOUNTS); Map updateAccountMap = null; @@ -223,7 +223,7 @@ public class PlainPermissionManager { Map aclAccessConfigMap = AclUtils.getYamlDataObject(fileHome + File.separator + fileName, Map.class); if (aclAccessConfigMap == null || aclAccessConfigMap.isEmpty()) { - throw new AclException(String.format("%s file not found or isEmpty", fileHome + File.separator + fileName)); + throw new AclException(String.format("%s file not found or empty", fileHome + File.separator + fileName)); } List> accounts = (List>) aclAccessConfigMap.get("accounts"); if (accounts != null) { @@ -257,7 +257,7 @@ public class PlainPermissionManager { Map aclAccessConfigMap = AclUtils.getYamlDataObject(fileHome + File.separator + fileName, Map.class); if (aclAccessConfigMap == null || aclAccessConfigMap.isEmpty()) { - throw new AclException(String.format("%s file not found or isEmpty", fileHome + File.separator + fileName)); + throw new AclException(String.format("%s file not found or empty", fileHome + File.separator + fileName)); } List globalWhiteRemoteAddrList = (List) aclAccessConfigMap.get(AclConstants.CONFIG_GLOBAL_WHITE_ADDRS);