We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62c0c2e commit 0246bbdCopy full SHA for 0246bbd
lib/ORM.js
@@ -134,7 +134,7 @@ exports.connect = function (opts, cb) {
134
db.emit("connect", err, !err ? db : null);
135
});
136
} catch (ex) {
137
- if (ex.code === "MODULE_NOT_FOUND" || ex.message.indexOf('find module')) {
+ if (ex.code === "MODULE_NOT_FOUND" || ex.message.indexOf('find module') > 0) {
138
return ORM_Error(new ORMError("Connection protocol not supported - have you installed the database driver for " + proto + "?", 'NO_SUPPORT'), cb);
139
}
140
return ORM_Error(ex, cb);
0 commit comments