Permalink
Browse files

Fix test for mkdir error code.

  • Loading branch information...
francoisfrisch committed Jan 1, 2013
1 parent 9704904 commit 8666cf375ddd94988df6aa9663c0417917e8a791
Showing with 1 addition and 1 deletion.
  1. +1 −1 fs.js
View
2 fs.js
@@ -137,7 +137,7 @@ exports.makeDirectory = function (path, mode) {
error.exists = true;
error.isDirectory = true;
}
- if (error.code === "EEXISTS") {
+ if (error.code === "EEXIST") {
error.exists = true;
}
done.reject(error);

0 comments on commit 8666cf3

Please sign in to comment.