Skip to content

Commit 0ec197e

Browse files
abmussedmabupt
authored andcommitted
[odbcTransport.js] Add check for connectError
1 parent 6a9f91f commit 0ec197e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/transports/odbcTransport.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ function odbcCall(config, xmlInput, done) {
5353
}
5454

5555
odbc.connect(connectionString, (connectError, connection) => {
56+
if (connectError) {
57+
done(connectError, null);
58+
return;
59+
}
5660
connection.query(sql, [ipc, ctl, xmlInput], (queryError, results) => {
5761
if (queryError) {
5862
done(queryError, null);

0 commit comments

Comments
 (0)