Skip to content

Commit

Permalink
Merge branch '4' into 5
Browse files Browse the repository at this point in the history
  • Loading branch information
dhensby committed Mar 28, 2019
2 parents 7559c99 + 6fc04b1 commit 832ed6a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/tedious.js
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,11 @@ class Request extends base.Request {
}
}

connection[this._isBatch ? 'execSqlBatch' : 'execSql'](req)
try {
connection[this._isBatch ? 'execSqlBatch' : 'execSql'](req)
} catch (error) {
handleError(true, connection, error)
}
})
})
}
Expand Down

0 comments on commit 832ed6a

Please sign in to comment.