Skip to content

Commit

Permalink
fs: mention URL in NUL character error message
Browse files Browse the repository at this point in the history
  • Loading branch information
LiviaMedeiros committed Jul 18, 2023
1 parent 93c6c95 commit f61da69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/internal/fs/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ const nullCheck = hideStackFrames((path, propName, throwError = true) => {
const err = new ERR_INVALID_ARG_VALUE(
propName,
path,
'must be a string or Uint8Array without null bytes',
'must be a string, Uint8Array, or URL without null bytes',
);
if (throwError) {
throw err;
Expand Down

0 comments on commit f61da69

Please sign in to comment.