You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2020/11/20 12:58:46 UTC
[tinkerpop] 01/02: Throw error from DriverRemoteConnection on
connection error
This is an automated email from the ASF dual-hosted git repository.
spmallette pushed a commit to branch TINKERPOP-2409
in repository https://gitbox.apache.org/repos/asf/tinkerpop.git
commit eca67aa26a637879e86ed25a33b168223a3f6ad1
Author: Ian Robinson <ia...@amazon.com>
AuthorDate: Thu Nov 19 14:54:21 2020 +0000
Throw error from DriverRemoteConnection on connection error
---
.../gremlin-javascript/lib/driver/driver-remote-connection.js | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/driver/driver-remote-connection.js b/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/driver/driver-remote-connection.js
index 62cbdb5..a85e5a2 100644
--- a/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/driver/driver-remote-connection.js
+++ b/gremlin-javascript/src/main/javascript/gremlin-javascript/lib/driver/driver-remote-connection.js
@@ -52,6 +52,9 @@ class DriverRemoteConnection extends RemoteConnection {
constructor(url, options) {
super(url);
this._client = new Client(url, options);
+ this.addListener('socketError', (err) => {
+ throw err;
+ });
}
/** @override */