Skip to content

Commit

Permalink
Better error message for out of order contigs (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 authored Feb 6, 2021
1 parent bcb56ea commit 05c07c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mut_txt.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ muts_txt_t *muts_txt_init(FILE *fp, contigs_t *c)
prev_pos = 0;
}
if(c->n == i) {
fprintf(stderr, "Error: contig not found [%s]\n", name);
fprintf(stderr, "Error: mutation contig not found or out of order [%s]\n", name);
exit(1);
}
else if(pos <= 0 || c->contigs[i].len < pos) {
Expand Down

0 comments on commit 05c07c9

Please sign in to comment.