Skip to content

Commit

Permalink
fixed warning/error handling again
Browse files Browse the repository at this point in the history
  • Loading branch information
bjmt committed Apr 27, 2019
1 parent a41e211 commit 939aee2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shuffler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,14 @@ void read_fasta_then_shuffle_and_write(istream &input, ostream &output, int k,
}

if (!name.empty()) {
++count_n;
output << name << endl;
if (content.length() == 0) {
cerr << "Warning: encountered a missing sequence ["
<< count_n << "]" << endl;
} else if (content.length() <= k) {
cerr << "Warning: encountered a sequence where k is too big ["
<< count_n << "]" << endl;
exit(EXIT_FAILURE);
}
shuffle_and_write(vector<char>(content.begin(), content.end()), k, gen,
false, method_i, output, true);
Expand Down

0 comments on commit 939aee2

Please sign in to comment.