fs: fix rmSync error code · nodejs/node@041a217 · GitHub
Skip to content

Commit 041a217

Browse files
Paul Schwabaueraduh95
authored andcommitted
fs: fix rmSync error code
Return the correct error code, when a directory_not_empty error occurred. Fixes: #57095 PR-URL: #57103 Reviewed-By: Jason Zhang <xzha4350@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 98d328a commit 041a217

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

src/node_file.cc

Lines changed: 2 additions & 1 deletion

test/parallel/test-fs-rm.js

Lines changed: 12 additions & 4 deletions

0 commit comments

Comments
 (0)