File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -138,7 +138,9 @@ class Result {
138
138
// notify connection holder that the used connection is not needed any more because error happened
139
139
// and result can't bee consumed any further; call the original onError callback after that
140
140
self . _connectionHolder . releaseConnection ( ) . then ( ( ) => {
141
- error . stack = error . stack + '\n' + this . _stack ;
141
+ // Error.prototype.toString() concatenates error.name and error.message nicely
142
+ // then we add the rest of the stack trace
143
+ error . stack = error . toString ( ) + '\n' + this . _stack ;
142
144
onErrorOriginal . call ( observer , error ) ;
143
145
} ) ;
144
146
} ;
Original file line number Diff line number Diff line change
1
+ 'use strict' ;
2
+ /**
3
+ (test:File)<-[:MADE {on: 26/10/2017}]-(Stefan:Coder)
4
+ */
You can’t perform that action at this time.
0 commit comments