Skip to content

Commit

Permalink
Add else block to throw error from catch in removeSync()
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanZim committed Apr 25, 2017
1 parent 9f5a130 commit c179797
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/remove/rimraf.js
Original file line number Diff line number Diff line change
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 c179797

Please sign in to comment.