Comparing version 0.5.10 to 0.5.11
@@ -107,5 +107,3 @@ var _ = require("underscore"); | ||
} else { | ||
console.log("Cannot read the custom config: " + err); | ||
console.log("Using the default config."); | ||
return callback(default_config); | ||
throw("Failed to read the configurations.\nIf you have already created a config file, please check it for any syntax errors."); | ||
} | ||
@@ -112,0 +110,0 @@ } else { |
@@ -15,3 +15,3 @@ { | ||
], | ||
"version": "0.5.10", | ||
"version": "0.5.11", | ||
"homepage": "https://github.com/laktek/punch", | ||
@@ -18,0 +18,0 @@ "author": "Lakshan Perera <lakshan@web2media.net> (http://laktek.com)", |
@@ -246,5 +246,6 @@ var config_handler = require("../lib/config_handler.js"); | ||
config_handler.getConfig("custom_config.json", function(output) { | ||
expect(output.server.port).toEqual(9009); | ||
}); | ||
var spyCallback = jasmine.createSpy(); | ||
expect(function() { | ||
config_handler.getConfig("custom_config.json", spyCallback); | ||
}).toThrow(); | ||
@@ -251,0 +252,0 @@ }); |
@@ -34,3 +34,3 @@ var module_utils = require("../../lib/utils/module_utils.js"); | ||
} else { | ||
raise("module not found"); | ||
throw("module not found"); | ||
} | ||
@@ -48,3 +48,3 @@ }); | ||
} else { | ||
raise("module not found"); | ||
throw("module not found"); | ||
} | ||
@@ -51,0 +51,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1890441
10692