@@ -599,7 +599,8 @@ static void parse_options (int _argc, char** _argv)
599
599
exit (EXIT_FAILURE );
600
600
601
601
no_length :
602
- fprintf (stderr , "\"%s\" contains no chromosome length\n" ,
602
+ fprintf (stderr , "\"%s\" contains no chromosome length\n"
603
+ "(expected \"chromosome:length\" or \"chromosome:start:end\")\n" ,
603
604
arg );
604
605
exit (EXIT_FAILURE );
605
606
}
@@ -1458,6 +1459,9 @@ int read_interval
1458
1459
1459
1460
//////////
1460
1461
// failure exits
1462
+ //
1463
+ // nota bene: I'd like to report the line's contents with these messages,
1464
+ // but the line has usually been modified before we get here
1461
1465
//////////
1462
1466
1463
1467
missing_eol :
@@ -1471,17 +1475,20 @@ int read_interval
1471
1475
exit (EXIT_FAILURE );
1472
1476
1473
1477
no_start :
1474
- fprintf (stderr , "problem at line %u, line contains no interval start\n" ,
1478
+ fprintf (stderr , "problem at line %u, line contains no interval start\n"
1479
+ "(expected \"chromosome start end ...\", but there are fewer than 2 fields)\n" ,
1475
1480
lineNumber );
1476
1481
exit (EXIT_FAILURE );
1477
1482
1478
1483
no_end :
1479
- fprintf (stderr , "problem at line %u, line contains no interval end\n" ,
1484
+ fprintf (stderr , "problem at line %u, line contains no interval end\n"
1485
+ "(expected \"chromosome start end ...\", but there are fewer than 3 fields)\n" ,
1480
1486
lineNumber );
1481
1487
exit (EXIT_FAILURE );
1482
1488
1483
1489
no_value :
1484
- fprintf (stderr , "problem at line %u, line contains no interval value\n" ,
1490
+ fprintf (stderr , "problem at line %u, line contains no interval value\n"
1491
+ "(expected \"chromosome start end value\", but there are fewer than 4 fields)\n" ,
1485
1492
lineNumber );
1486
1493
exit (EXIT_FAILURE );
1487
1494
}
0 commit comments