dolphindb 2.0.919 → 2.0.920

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/browser.js CHANGED
@@ -2125,7 +2125,10 @@ export class DdbConnectionError extends Error {
2125
2125
  name = 'DdbConnectionError';
2126
2126
  ddb;
2127
2127
  constructor(ddb, error_options) {
2128
- super(`${ddb.url} ${t('已断开')}${error_options?.cause ? `. ${error_options.cause.message}` : ''}`, error_options);
2128
+ super(error_options?.cause ?
2129
+ error_options.cause.message
2130
+ :
2131
+ `${ddb.url} ${t('连接出错了,可能由于网络原因连接已被关闭,或服务器断开连接')}`, error_options);
2129
2132
  this.ddb = ddb;
2130
2133
  }
2131
2134
  }