Skip to content

Commit b685cee

Browse files
Update lib/internal/fs/promises.js
Co-authored-by: Ruben Bridgewater <[email protected]>
1 parent 3f6d78b commit b685cee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/fs/promises.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ async function readFileHandle(filehandle, options) {
531531

532532
if (size > maxFileSize) {
533533
console.warn(
534-
`Warning: File size (${size} bytes) exceeds the supported limit of ${maxFileSize} bytes. Consider using chunked reading.`,
534+
`Warning: Detected \`fs.readFile()\` to read a huge file in memory (${size} bytes). Please consider using \`fs.createReadStream()\` instead to minimize memory overhead and increase the performance.`,
535535
);
536536
}
537537

0 commit comments

Comments
 (0)