From d1ad194dd96b23f496844d9839cd999a505a1fb7 Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Thu, 31 Oct 2013 11:17:14 -0400 Subject: exit if no sequences --- src/c/quikr_train.c | 1 + 1 file changed, 1 insertion(+) 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) { -- cgit v1.2.3