From b6993e20dbb481e3f727882956ef666ddcac0bcf Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Thu, 31 Oct 2013 16:11:50 -0400 Subject: say failname on fail --- src/c/quikr_functions.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/c') diff --git a/src/c/quikr_functions.c b/src/c/quikr_functions.c index 3697aa2..2bd3065 100644 --- a/src/c/quikr_functions.c +++ b/src/c/quikr_functions.c @@ -10,6 +10,7 @@ #include "kmer_utils.h" #include "quikr.h" + void debug_arrays(double *count_matrix, struct matrix *sensing_matrix) { FILE *count_fh = fopen("count.mat", "w"); FILE *sensing_fh = fopen("sensing.mat", "w"); @@ -133,7 +134,7 @@ struct matrix *load_sensing_matrix(const char *filename) { // Check for quikr line = gzgets(fh, line, 1024); if(strcmp(line, "quikr\n") != 0) { - fprintf(stderr, "This does not look like a quikr sensing matrix. Please check your path\n"); + fprintf(stderr, "This does not look like a quikr sensing matrix. Please check your path: %s\n", filename); exit(EXIT_FAILURE); } -- cgit v1.2.3