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:
parent
88983fb3eb
commit
00e6d41a9d
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue