loopback-datasource-juggler/lib/utils.js

12 lines
271 B
JavaScript
Raw Normal View History

2012-01-30 19:37:14 +00:00
exports.safeRequire = safeRequire;
function safeRequire(module) {
try {
return require(module);
} catch (e) {
console.log('Run "npm install ' + module + '" command to use jugglingdb using this database engine');
process.exit(1);
2012-01-30 19:37:14 +00:00
}
}