diff --git a/nop-cluster/nop-cluster-nacos/src/main/java/io/nop/cluster/nacos/NacosConfigService.java b/nop-cluster/nop-cluster-nacos/src/main/java/io/nop/cluster/nacos/NacosConfigService.java index b76401c58..5f3158ba5 100644 --- a/nop-cluster/nop-cluster-nacos/src/main/java/io/nop/cluster/nacos/NacosConfigService.java +++ b/nop-cluster/nop-cluster-nacos/src/main/java/io/nop/cluster/nacos/NacosConfigService.java @@ -168,7 +168,11 @@ public IConfigSource getConfigSource(IConfigSource baseSource, String dataId) { @Override public void publishConfig(String dataId, String group, String content) { ConfigType type = getConfigType(dataId); - configService.publishConfig(dataId, group, content, type.getType()); + try { + configService.publishConfig(dataId, group, content, type.getType()); + } catch (Exception e) { + throw NopException.adapt(e); + } } private ConfigType getConfigType(String dataId) {