Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions lib/transports/idbTransport.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ try {
}

function idbCall(config, xmlInput, cb) {
// idb transport is not available bail out
if (idb === null) {
cb(new Error('idb-connector was not found, ensure idb-connector is installed properly (idb-connector is only available on IBM i).'), null);
}

const {
database = '*LOCAL',
username = null,
Expand Down
5 changes: 5 additions & 0 deletions lib/transports/odbcTransport.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ try {
}

function odbcCall(config, xmlInput, done) {
// odbc transport is not available bail out
if (odbc === null) {
done(new Error('odbc transport was not found, ensure odbc is installed properly.'), null);
}

const {
host = 'localhost',
username = null,
Expand Down