Skip to content

Commit

Permalink
better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Llamas committed Dec 7, 2013
1 parent 0d84b26 commit c54346d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/read.js
Expand Up @@ -109,7 +109,7 @@ var namespace = function (p, key, value){
p[str] = {};
}else if (typeof p[str] !== "object"){
return new Error ("Invalid namespace chain, the key must contain an " +
"object: " + str);
"object: " + key);
}
p = p[str];
}
Expand Down

0 comments on commit c54346d

Please sign in to comment.