You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/TICCL-LDcalc.cxx
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1109,6 +1109,11 @@ int main( int argc, char **argv ){
1109
1109
while ( getline( indexf, line ) ){
1110
1110
++file_lines;
1111
1111
}
1112
+
if ( file_lines == 0 ){
1113
+
cerr << "the indexfile: '" << indexFile
1114
+
<< "' is empty! No further processing possible." << endl;
1115
+
exit( EXIT_FAILURE );
1116
+
}
1112
1117
cout << progname << ": " << file_lines << " character confusion values to be read.\n\t\tWe indicate progress by printing a dot for every 1000 confusion values processed" << endl;
1113
1118
indexf.clear();
1114
1119
indexf.seekg( 0 );
@@ -1129,7 +1134,7 @@ int main( int argc, char **argv ){
1129
1134
vector<string> parts;
1130
1135
if ( TiCC::split_at( line, parts, "#" ) != 2 ){
1131
1136
cerr << progname << ": ERROR in line " << line_nr
1132
-
<< " of indexfile: unable to split in 2 parts at #"
1137
+
<< " of the indexfile: unable to split in 2 parts at #"
0 commit comments