Skip to content

Commit 21c4ba8

Browse files
committed
Checking in transpiled files for bower
1 parent b2f357c commit 21c4ba8

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

lib/browser/neo4j-web.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -29775,6 +29775,8 @@ var _transaction = require('./transaction');
2977529775

2977629776
var _transaction2 = _interopRequireDefault(_transaction);
2977729777

29778+
var _error = require("./error");
29779+
2977829780
/**
2977929781
* A Session instance is used for handling the connection and
2978029782
* sending statements through the connection.
@@ -29820,7 +29822,7 @@ var Session = (function () {
2982029822
this._conn.pullAll(streamObserver);
2982129823
this._conn.sync();
2982229824
} 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."));
2982429826
}
2982529827
return new _result2['default'](streamObserver, statement, parameters);
2982629828
}
@@ -29839,7 +29841,7 @@ var Session = (function () {
2983929841
var _this = this;
2984029842

2984129843
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.");
2984329845
}
2984429846

2984529847
this._hasTx = true;
@@ -29878,7 +29880,7 @@ var Session = (function () {
2987829880
exports['default'] = Session;
2987929881
module.exports = exports['default'];
2988029882

29881-
},{"./internal/stream-observer":155,"./result":159,"./transaction":161}],161:[function(require,module,exports){
29883+
},{"./error":142,"./internal/stream-observer":155,"./result":159,"./transaction":161}],161:[function(require,module,exports){
2988229884
/**
2988329885
* Copyright (c) 2002-2016 "Neo Technology,"
2988429886
* Network Engine for Objects in Lund AB [http://neotechnology.com]

lib/browser/neo4j-web.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/browser/neo4j-web.test.js

+7-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/v1/session.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ var _transaction = require('./transaction');
4141

4242
var _transaction2 = _interopRequireDefault(_transaction);
4343

44+
var _error = require("./error");
45+
4446
/**
4547
* A Session instance is used for handling the connection and
4648
* sending statements through the connection.
@@ -86,7 +88,7 @@ var Session = (function () {
8688
this._conn.pullAll(streamObserver);
8789
this._conn.sync();
8890
} 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."));
9092
}
9193
return new _result2['default'](streamObserver, statement, parameters);
9294
}
@@ -105,7 +107,7 @@ var Session = (function () {
105107
var _this = this;
106108

107109
if (this._hasTx) {
108-
throw new newError("Cannot have multiple transactions open for the session. Use multiple sessions or close the transaction before opening a new one.");
110+
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.");
109111
}
110112

111113
this._hasTx = true;

0 commit comments

Comments
 (0)