Skip to content

Commit

Permalink
Fix error when call site error is missing stack
Browse files Browse the repository at this point in the history
fixes #1179
  • Loading branch information
dougwilson committed Nov 30, 2015
1 parent 76f03ae commit d4a5fd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions Changes.md
Expand Up @@ -11,6 +11,7 @@ you spot any mistakes.
* Add types for fractional seconds support
* Fix `connection.destroy()` on pool connection creating sequences #1291
* Fix error code 139 `HA_ERR_TO_BIG_ROW` to be `HA_ERR_TOO_BIG_ROW`
* Fix error when call site error is missing stack #1179
* Fix reading password from MySQL URL that has bare colon #1278
* Handle MySQL servers not closing TCP connection after QUIT -> OK exchange #1277
* Minor SqlString Date to string performance improvement #1233
Expand Down
6 changes: 3 additions & 3 deletions lib/protocol/sequences/Sequence.js
Expand Up @@ -53,12 +53,12 @@ Sequence.prototype._packetToError = function(packet) {
return err;
};

Sequence.prototype._addLongStackTrace = function(err) {
if (!this._callSite) {
Sequence.prototype._addLongStackTrace = function _addLongStackTrace(err) {
if (!this._callSite || !this._callSite.stack) {
return;
}

var delimiter = '\n --------------------\n' ;
var delimiter = '\n --------------------\n';

if (err.stack.indexOf(delimiter) > -1) {
return;
Expand Down

0 comments on commit d4a5fd7

Please sign in to comment.