aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2013-10-31 11:17:14 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2013-10-31 11:17:14 -0400
commitd1ad194dd96b23f496844d9839cd999a505a1fb7 (patch)
tree231715b7f841192e0682bfcbc90acf48bc85a72a
parentbc78ff5c01b496fa9fa64a4f41e9c430087d82a3 (diff)
exit if no sequences
-rw-r--r--src/c/quikr_train.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/c/quikr_train.c b/src/c/quikr_train.c
index 344f926..6eabd4f 100644
--- a/src/c/quikr_train.c
+++ b/src/c/quikr_train.c
@@ -134,6 +134,7 @@ int main(int argc, char **argv) {
unsigned long long sequences = count_sequences(fasta_filename);
if(sequences == 0) {
fprintf(stderr, "Error: %s contains 0 fasta sequences\n", fasta_filename);
+ exit(EXIT_FAILURE);
}
if(verbose) {