From fbf804a26706a17c41bec5251ad0cacf9c4e1fa2 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 25 Mar 2011 15:37:08 +0100 Subject: Say which DirAx line couldn't be understood --- src/dirax.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/dirax.c b/src/dirax.c index 067b3599..eb98a7a9 100644 --- a/src/dirax.c +++ b/src/dirax.c @@ -116,7 +116,8 @@ static void dirax_parseline(const char *line, struct image *image, r = sscanf(line, "%f %f %f %f %f %f", &d, &d, &d, &ax, &ay, &az); if ( r != 6 ) { - ERROR("Couldn't understand cell line\n"); + ERROR("Couldn't understand cell line:\n"); + ERROR("'%s'\n", line); dirax->read_cell = 0; free(image->candidate_cells[image->ncells]); return; @@ -132,7 +133,8 @@ static void dirax_parseline(const char *line, struct image *image, r = sscanf(line, "%f %f %f %f %f %f", &d, &d, &d, &bx, &by, &bz); if ( r != 6 ) { - ERROR("Couldn't understand cell line\n"); + ERROR("Couldn't understand cell line:\n"); + ERROR("'%s'\n", line); dirax->read_cell = 0; free(image->candidate_cells[image->ncells]); return; @@ -148,7 +150,8 @@ static void dirax_parseline(const char *line, struct image *image, r = sscanf(line, "%f %f %f %f %f %f", &d, &d, &d, &cx, &cy, &cz); if ( r != 6 ) { - ERROR("Couldn't understand cell line\n"); + ERROR("Couldn't understand cell line:\n"); + ERROR("'%s'\n", line); dirax->read_cell = 0; free(image->candidate_cells[image->ncells]); return; -- cgit v1.2.3