diff --git a/CHANGES.md b/CHANGES.md index da4b82f..e59c169 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,5 +1,9 @@ # CHANGES +## 1.14.1 + +* Adding more useful error message to cn_access file reading method + ## 1.14.0 * Making species and assembly required commandline arguments in the estep diff --git a/Makefile b/Makefile index 2577b22..00dceb5 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CAVEMAN_VERSION=1.14.0 +CAVEMAN_VERSION=1.14.1 TEST_REF?="" #Compiler diff --git a/src/cn_access.c b/src/cn_access.c index 2ca81f7..f7fd436 100644 --- a/src/cn_access.c +++ b/src/cn_access.c @@ -62,7 +62,7 @@ int cn_access_populate_cn(char *file_loc,uint8_t is_normal){ char *chr_nom = malloc(sizeof(char) * 250); int beg,end; int chk = sscanf(rd,"%s\t%d\t%d\t%d",chr_nom,&beg,&end,&cop); - check(chk == 4,"Incorrect line parsed from copy number file.\n"); + check(chk == 4,"Unusable line '%s' parsed from copy number file '%s'.\n",rd,file_loc); seq_region_t *reg = malloc(sizeof(struct seq_region_t)); reg->chr_name = chr_nom; reg->beg = beg;