You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/browser/neo4j-web.js
+5-3
Original file line number
Diff line number
Diff line change
@@ -29775,6 +29775,8 @@ var _transaction = require('./transaction');
29775
29775
29776
29776
var _transaction2 = _interopRequireDefault(_transaction);
29777
29777
29778
+
var _error = require("./error");
29779
+
29778
29780
/**
29779
29781
* A Session instance is used for handling the connection and
29780
29782
* sending statements through the connection.
@@ -29820,7 +29822,7 @@ var Session = (function () {
29820
29822
this._conn.pullAll(streamObserver);
29821
29823
this._conn.sync();
29822
29824
} else {
29823
-
streamObserver.onError({ error: "Please close the currently open transaction object before running " + "more statements/transactions in the current session." });
29825
+
streamObserver.onError((0, _error.newError)("Statements cannot be run directly on a " + "session with an open transaction; either run from within the " + "transaction or use a different session."));
29824
29826
}
29825
29827
return new _result2['default'](streamObserver, statement, parameters);
29826
29828
}
@@ -29839,7 +29841,7 @@ var Session = (function () {
29839
29841
var _this = this;
29840
29842
29841
29843
if (this._hasTx) {
29842
-
throw new newError("Cannot have multiple transactions open for the session. Use multiple sessions or close the transaction before opening a new one.");
29844
+
throw new _error.newError("You cannot begin a transaction on a session with an " + "open transaction; either run from within the transaction or use a " + "different session.");
29843
29845
}
29844
29846
29845
29847
this._hasTx = true;
@@ -29878,7 +29880,7 @@ var Session = (function () {
* A Session instance is used for handling the connection and
46
48
* sending statements through the connection.
@@ -86,7 +88,7 @@ var Session = (function () {
86
88
this._conn.pullAll(streamObserver);
87
89
this._conn.sync();
88
90
}else{
89
-
streamObserver.onError({error: "Please close the currently open transaction object before running "+"more statements/transactions in the current session."});
91
+
streamObserver.onError((0,_error.newError)("Statements cannot be run directly on a "+"session with an open transaction; either run from within the "+"transaction or use a different session."));
thrownewnewError("Cannot have multiple transactions open for the session. Use multiple sessions or close the transaction before opening a new one.");
110
+
thrownew_error.newError("You cannot begin a transaction on a session with an "+"open transaction; either run from within the transaction or use a "+"different session.");
0 commit comments