From f61da6960f0a1049de02731c3ea423623e5dd2e5 Mon Sep 17 00:00:00 2001 From: LiviaMedeiros Date: Tue, 18 Jul 2023 23:24:44 +0800 Subject: [PATCH] fs: mention URL in NUL character error message --- lib/internal/fs/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/internal/fs/utils.js b/lib/internal/fs/utils.js index af4a8a814fb46e..02dc84be9148a0 100644 --- a/lib/internal/fs/utils.js +++ b/lib/internal/fs/utils.js @@ -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;