Skip to content
This repository has been archived by the owner on Feb 26, 2022. It is now read-only.

Commit

Permalink
Bug 566950 - test-file.testRmdirNonempty fails on Windows, r=atul
Browse files Browse the repository at this point in the history
  • Loading branch information
0c0w3 committed May 20, 2010
1 parent baea789 commit 9eb1c8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/jetpack-core/lib/file.js
Expand Up @@ -191,7 +191,8 @@ exports.rmdir = function rmdir(path) {
try {
file.remove(false);
}
catch (err if err.result === Cr.NS_ERROR_FILE_DIR_NOT_EMPTY) {
catch (err) {
// Bug 566950 explains why we're not catching a specific exception here.
throw new Error("The directory is not empty: " + path);
}
};

0 comments on commit 9eb1c8c

Please sign in to comment.