We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87b644e commit 04f1248Copy full SHA for 04f1248
src/v1/result.js
@@ -138,7 +138,9 @@ class Result {
138
// notify connection holder that the used connection is not needed any more because error happened
139
// and result can't bee consumed any further; call the original onError callback after that
140
self._connectionHolder.releaseConnection().then(() => {
141
- error.stack = error.stack + '\n' + this._stack;
+ // 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;
144
onErrorOriginal.call(observer, error);
145
});
146
};
0 commit comments