Skip to content

Commit

Permalink
fix(node): error when throwing FS_EISDIR (#23829)
Browse files Browse the repository at this point in the history
The `EISDIR` error code is not available as a global variable, but must
be accessed through the `osConstants.errno` object.

Fixes #23695
  • Loading branch information
marvinhagemeister committed May 16, 2024
1 parent 88983fb commit 00e6d41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/node/polyfills/internal/fs/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ export const validateRmOptionsSync = hideStackFrames(
message: "is a directory",
path,
syscall: "rm",
errno: EISDIR,
errno: osConstants.errno.EISDIR,
});
}
}
Expand Down

0 comments on commit 00e6d41

Please sign in to comment.