Skip to content

Commit

Permalink
Merge pull request #408 from jprichardson/rmSync-patch
Browse files Browse the repository at this point in the history
Add else block to throw error from catch in removeSync()
  • Loading branch information
jprichardson committed Apr 25, 2017
2 parents 9f5a130 + c179797 commit acd8916
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/remove/rimraf.js
Expand Up @@ -281,6 +281,8 @@ function rmdirSync (p, options, originalEr) {
throw originalEr
} else if (er.code === 'ENOTEMPTY' || er.code === 'EEXIST' || er.code === 'EPERM') {
rmkidsSync(p, options)
} else {
throw er
}
}
}
Expand Down

0 comments on commit acd8916

Please sign in to comment.