aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCalvin Morrison <mutantturkey@gmail.com>2013-10-31 16:11:50 -0400
committerCalvin Morrison <mutantturkey@gmail.com>2013-10-31 16:11:50 -0400
commitb6993e20dbb481e3f727882956ef666ddcac0bcf (patch)
tree30aa56c7e16a0c463af1ce997d9f0e84cda7465b
parent8a92846c188a85ab90168c16b44d2c0197ae079e (diff)
say failname on fail
-rw-r--r--src/c/quikr_functions.c3
1 files changed, 2 insertions, 1 deletions
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);
}