Add error information to facilitate troubleshooting

This commit is contained in:
hujun 2021-12-31 20:53:48 +08:00
parent 320c1b97f4
commit 6ce2eb8d7c

View File

@ -1028,7 +1028,7 @@ public class ClientWorker implements Closeable {
LOGGER.error("[{}] [sub-server-error] dataId={}, group={}, tenant={}, code={}", this.getName(), dataId,
group, tenant, response);
throw new NacosException(response.getErrorCode(),
"http error, code=" + response.getErrorCode() + ",dataId=" + dataId + ",group=" + group
"http error, code=" + response.getErrorCode() + ",msg=" + response.getMessage() + ",dataId=" + dataId + ",group=" + group
+ ",tenant=" + tenant);
}