From 01b9307e1c57fc09e774825c7a9ae90b1fd90390 Mon Sep 17 00:00:00 2001 From: Anatoliy Chakkaev Date: Sun, 7 Oct 2012 14:54:20 +0400 Subject: [PATCH] Better safeRequire --- .gitignore | 1 + lib/utils.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 6e8cdaae..30c37338 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules doc coverage.html +coverage diff --git a/lib/utils.js b/lib/utils.js index e867265b..dc86cd87 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -4,7 +4,7 @@ function safeRequire(module) { try { return require(module); } catch (e) { - console.log('Run "npm install ' + module + '" command to use jugglingdb using this database engine'); + console.log('Run "npm install jugglingdb ' + module + '" command to use jugglingdb using ' + module + ' database engine'); process.exit(1); } }