Skip to content

Commit ba47bc1

Browse files
Update src/fread.c
Co-authored-by: Michael Chirico <[email protected]>
1 parent e6b4555 commit ba47bc1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fread.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1421,11 +1421,11 @@ int freadMain(freadMainArgs _args) {
14211421
close(fd); // # nocov
14221422
STOP(_("Opened file ok but couldn't obtain its size: %s"), fnam); // # nocov
14231423
}
1424-
if (verbose) DTPRINT(_(" File opened, size = %s.\n"), filesize_to_str(stat_buf.st_size));
14251424
if (stat_buf.st_size > SIZE_MAX) {
14261425
close(fd); // # nocov
1427-
STOP(_("File is too large: %s"), fnam); // # nocov
1426+
STOP(_("File is too large [%s > %s]: %s"), filesize_to_str(stat_buf.st_size), filesize_to_str(SIZE_MAX), fnam); // # nocov
14281427
}
1428+
if (verbose) DTPRINT(_(" File opened, size = %s.\n"), filesize_to_str(stat_buf.st_size));
14291429
fileSize = (size_t) stat_buf.st_size;
14301430
if (fileSize == 0) {close(fd); STOP(_("File is empty: %s"), fnam);}
14311431

0 commit comments

Comments
 (0)