db: fix error message. fixes #168.
This commit is contained in:
parent
3ca70a152a
commit
87b5375079
@ -13,6 +13,8 @@ exports.get = function get(name) {
|
|||||||
try {
|
try {
|
||||||
return require(name);
|
return require(name);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw new Error('Database backend "' + name + '" not found.');
|
if (e.code === 'MODULE_NOT_FOUND')
|
||||||
|
throw new Error('Database backend "' + name + '" not found.');
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user