Skip to content

Commit 86c53be

Browse files
committed
Bump server target version
1 parent a8d338e commit 86c53be

File tree

4 files changed

+16
-5
lines changed

4 files changed

+16
-5
lines changed

gulpfile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ gulp.task('watch-n-test', ['test-nodejs'], function () {
165165
return gulp.watch(['src/**/*.js', "test/**/*.js"], ['test-nodejs'] );
166166
});
167167

168-
var neo4jLinuxUrl = 'http://alpha.neohq.net/dist/neo4j-enterprise-3.0.0-M01-NIGHTLY-unix.tar.gz';
169-
var neo4jWinUrl = 'http://alpha.neohq.net/dist/neo4j-enterprise-3.0.0-M01-NIGHTLY-windows.zip';
170-
var neo4jHome = './build/neo4j-enterprise-3.0.0-M01';
168+
var neo4jLinuxUrl = 'http://alpha.neohq.net/dist/neo4j-enterprise-3.0.0-M02-NIGHTLY-unix.tar.gz';
169+
var neo4jWinUrl = 'http://alpha.neohq.net/dist/neo4j-enterprise-3.0.0-M02-NIGHTLY-windows.zip';
170+
var neo4jHome = './build/neo4j-enterprise-3.0.0-M02';
171171
var isWin = /^win/.test(process.platform);
172172

173173
gulp.task('download-neo4j', function() {

src/v1/internal/connector.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,14 @@ function port( url ) {
7373

7474
function NO_OP(){};
7575

76+
function LOG(err) {
77+
console.log(err);
78+
};
79+
7680
let NO_OP_OBSERVER = {
7781
onNext : NO_OP,
7882
onCompleted : NO_OP,
79-
onError : NO_OP
83+
onError : LOG
8084
}
8185

8286
/** Maps from packstream structures to Neo4j domain objects */

src/v1/internal/stream-observer.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,11 @@ class StreamObserver {
8181
*/
8282
onError(error) {
8383
if( this._observer ) {
84-
this._observer.onError( error );
84+
if( this._observer.onError ) {
85+
this._observer.onError( error );
86+
} else {
87+
console.log( error );
88+
}
8589
} else {
8690
this._error = error;
8791
}

test/internal/connector.test.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ describe('connector', function() {
3030
expect( msg ).not.toBeNull();
3131
conn.close();
3232
done();
33+
},
34+
onError: function(err) {
35+
console.log(err);
3336
}
3437
});
3538
conn.sync();

0 commit comments

Comments
 (0)