Skip to content

Commit 553af67

Browse files
Update lib/internal/fs/promises.js
Co-authored-by: Ruben Bridgewater <[email protected]>
1 parent 45bf4de commit 553af67

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
@@ -526,7 +526,7 @@ async function readFileHandle(filehandle, options) {
526526

527527
if (size > maxFileSize) {
528528
console.warn(
529-
`Warning: File size (${size} bytes) exceeds the supported limit of ${maxFileSize} bytes. Consider using chunked reading.`,
529+
`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.`,
530530
);
531531
}
532532

0 commit comments

Comments
 (0)