1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-22 06:09:25 -05: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 GitHub
parent 88983fb3eb
commit 00e6d41a9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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