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 +4 -1
- package/browser.js.map +1 -1
- package/i18n/dict.json +3 -0
- package/index.js +4 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
package/i18n/dict.json
CHANGED
package/index.js
CHANGED
|
@@ -2109,7 +2109,10 @@ export class DdbConnectionError extends Error {
|
|
|
2109
2109
|
name = 'DdbConnectionError';
|
|
2110
2110
|
ddb;
|
|
2111
2111
|
constructor(ddb, error_options) {
|
|
2112
|
-
super(
|
|
2112
|
+
super(error_options?.cause ?
|
|
2113
|
+
error_options.cause.message
|
|
2114
|
+
:
|
|
2115
|
+
`${ddb.url} ${t('连接出错了,可能由于网络原因连接已被关闭,或服务器断开连接')}`, error_options);
|
|
2113
2116
|
this.ddb = ddb;
|
|
2114
2117
|
}
|
|
2115
2118
|
}
|