summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/configuration.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/configuration.js b/lib/configuration.js
index a26135c..d206505 100644
--- a/lib/configuration.js
+++ b/lib/configuration.js
@@ -98,14 +98,14 @@ Configuration.prototype.load = function() {
.then(function() {
var configPath, config;
- configPath = require.resolve(
- path.resolve(that.book.root, that.options.configFile)
- );
+ try {
+ configPath = require.resolve(
+ path.resolve(that.book.root, that.options.configFile)
+ );
- // Invalidate node.js cache for livreloading
- delete require.cache[configPath];
+ // Invalidate node.js cache for livreloading
+ delete require.cache[configPath];
- try {
_config = require(configPath);
that.options = _.merge(
that.options,