Skip to content

Commit

Permalink
index: update error message for failure to index
Browse files Browse the repository at this point in the history
After samtools/htslib#470, which fixes the underlying issue samtools#435,
we update the error message upon failure to index. See
samtools#435 (comment)

Closes samtools#435
  • Loading branch information
mcshane committed Feb 23, 2017
1 parent d17235b commit ccb98c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vcfindex.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ int main_vcfindex(int argc, char *argv[])
case 'c': tbi = 0; break;
case 't': tbi = 1; min_shift = 0; break;
case 'f': force = 1; break;
case 'm':
case 'm':
min_shift = strtol(optarg,&tmp,10);
if ( *tmp ) error("Could not parse argument: --min-shift %s\n", optarg);
break;
Expand Down Expand Up @@ -217,7 +217,7 @@ int main_vcfindex(int argc, char *argv[])
else if (ret == -3)
error("index: \"%s\" is in a format that cannot be usefully indexed\n", fname);
else
error("index: \"%s\" is corrupted or unsorted\n", fname);
error("index: failed to create index for \"%s\"\n", fname);
}
return 0;
}

0 comments on commit ccb98c3

Please sign in to comment.