loopback-datasource-juggler/lib/utils.js

12 lines
292 B
JavaScript

exports.safeRequire = safeRequire;
function safeRequire(module) {
try {
return require(module);
} catch (e) {
console.log('Run "npm install jugglingdb ' + module + '" command to use jugglingdb using ' + module + ' database engine');
process.exit(1);
}
}