Skip to content

Commit 00dfe48

Browse files
author
fishtailfu
committed
fix: shade nacos-client
1 parent a5c8ee8 commit 00dfe48

File tree

1 file changed

+2
-5
lines changed
  • polaris-plugins/polaris-plugins-connector/connector-nacos/src/main/java/com/tencent/polaris/plugins/connector/nacos

1 file changed

+2
-5
lines changed

polaris-plugins/polaris-plugins-connector/connector-nacos/src/main/java/com/tencent/polaris/plugins/connector/nacos/NacosConnector.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -201,15 +201,12 @@ public NacosService getOrCreateNacosService(String namespace) {
201201
nacosService = new NacosService(namingService, nacosContext);
202202
nacosServices.put(namespace, nacosService);
203203
return nacosService;
204-
} catch (NacosException e) {
204+
} catch (Throwable e) {
205205
LOG.error("[Connector][Nacos] fail to create naming service to {}, namespace {}",
206206
properties.get(PropertyKeyConst.SERVER_ADDR), namespace, e);
207-
return null;
208-
} catch (InterruptedException e) {
209-
e.printStackTrace();
207+
throw new PolarisException(ErrorCode.INTERNAL_ERROR, "Failed to initialize Nacos service for namespace: " + namespace, e);
210208
}
211209
}
212-
throw new PolarisException(ErrorCode.INTERNAL_ERROR, "Failed to initialize Nacos service for namespace: " + namespace);
213210
}
214211

215212
public NacosContext getNacosContext() {

0 commit comments

Comments
 (0)