Permalink
Browse files

now compatible with node 0.6

  • Loading branch information...
1 parent 68b0998 commit bdf643fff61e10c530a67cc9951da6c36339e91b @pgte committed Nov 17, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/load.js
  2. +1 −1 package.json
View
@@ -6,7 +6,7 @@ module.exports = function(filePath, domain, throwIfNotFound) {
try {
fileContents = fs.readFileSync(filePath)
} catch(err) {
- if (err.code === 'EBADF') {
+ if (err.code === 'EBADF' || err.code == 'ENOENT') {
if (throwIfNotFound) {
throw new Error('Could not find configuration file for ' + domain + ' domain');
}
View
@@ -1,7 +1,7 @@
{ "name" : "konphyg"
, "description" : "Cascading configuration files made easy in Node.js."
, "tags" : ["configuration", "environments"]
-, "version" : "1.0.4"
+, "version" : "1.0.5"
, "author" : "Pedro Teixeira <pedro.teixeira@gmail.com>"
, "repository" :
{ "type" : "git"

0 comments on commit bdf643f

Please sign in to comment.