summaryrefslogtreecommitdiffstats
path: root/nrep_stats.cc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--nrep_stats.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/nrep_stats.cc b/nrep_stats.cc
index 2c97d4d..746a3bc 100644
--- a/nrep_stats.cc
+++ b/nrep_stats.cc
@@ -68,13 +68,13 @@ int print_nrep_stats( const std::vector< std::string > & filenames,
}
const unsigned long long cdata_size = lzip_index.cdata_size();
if( !fits_in_size_t( cdata_size ) ) // mmap uses size_t
- { show_file_error( input_filename, "Input file is too large for mmap." );
+ { show_file_error( input_filename, large_file_msg );
set_retval( retval, 1 ); close( infd ); continue; }
const uint8_t * const buffer =
(const uint8_t *)mmap( 0, cdata_size, PROT_READ, MAP_PRIVATE, infd, 0 );
close( infd );
if( buffer == MAP_FAILED )
- { show_file_error( input_filename, "Can't mmap", errno );
+ { show_file_error( input_filename, mmap_msg, errno );
set_retval( retval, 1 ); continue; }
for( long j = 0; j < lzip_index.members(); ++j )
{