From 05c07c9f322dcc1443d1e04ece456359a19e71ab Mon Sep 17 00:00:00 2001 From: Nils Homer Date: Fri, 5 Feb 2021 17:23:17 -0800 Subject: [PATCH] Better error message for out of order contigs (#66) --- src/mut_txt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mut_txt.c b/src/mut_txt.c index 5019563..b460944 100644 --- a/src/mut_txt.c +++ b/src/mut_txt.c @@ -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) {