Skip to content

Commit

Permalink
[odbcTransport.js] Add check for connectError
Browse files Browse the repository at this point in the history
  • Loading branch information
abmusse authored and dmabupt committed Jul 5, 2019
1 parent 6a9f91f commit 0ec197e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/transports/odbcTransport.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ function odbcCall(config, xmlInput, done) {
}

odbc.connect(connectionString, (connectError, connection) => {
if (connectError) {
done(connectError, null);
return;
}
connection.query(sql, [ipc, ctl, xmlInput], (queryError, results) => {
if (queryError) {
done(queryError, null);
Expand Down

0 comments on commit 0ec197e

Please sign in to comment.