0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-10 06:07:03 -04:00

fix(node): error when throwing FS_EISDIR (#23829)

The `EISDIR` error code is not available as a global variable, but must
be accessed through the `osConstants.errno` object.

Fixes https://github.com/denoland/deno/issues/23695
This commit is contained in:
Marvin Hagemeister 2024-05-16 10:30:41 +02:00 committed by Bartek Iwańczuk
parent 4137a083e8
commit 10ce4b11d3
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750

View file

@ -891,7 +891,7 @@ export const validateRmOptionsSync = hideStackFrames(
message: "is a directory",
path,
syscall: "rm",
errno: EISDIR,
errno: osConstants.errno.EISDIR,
});
}
}