Skip to content

Commit 939aee2

Browse files
committed
fixed warning/error handling again
1 parent a41e211 commit 939aee2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/shuffler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,14 +164,14 @@ void read_fasta_then_shuffle_and_write(istream &input, ostream &output, int k,
164164
}
165165

166166
if (!name.empty()) {
167+
++count_n;
167168
output << name << endl;
168169
if (content.length() == 0) {
169170
cerr << "Warning: encountered a missing sequence ["
170171
<< count_n << "]" << endl;
171172
} else if (content.length() <= k) {
172173
cerr << "Warning: encountered a sequence where k is too big ["
173174
<< count_n << "]" << endl;
174-
exit(EXIT_FAILURE);
175175
}
176176
shuffle_and_write(vector<char>(content.begin(), content.end()), k, gen,
177177
false, method_i, output, true);

0 commit comments

Comments
 (0)