Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Report acutal error when unable to load config file

  • Loading branch information...
commit 976ba92fd239dc708972a769d64bf5311f4f8d92 1 parent 2a54e02
@brettstimmerman authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/solder.js
View
5 lib/solder.js
@@ -13,11 +13,12 @@ var fs = require('fs'),
function Solderer (configFile) {
configFile = configFile || './solder-config.js';
-
+
try {
this.config = require(fs.realpathSync(configFile)).config;
} catch (e) {
- throw new Error('Missing or invalid configuration file: ' + configFile);
+ throw new Error('Missing or invalid configuration file: ' + configFile +
+ '; Error: ' + e);
}
this.cache = cache.create();
Please sign in to comment.
Something went wrong with that request. Please try again.