aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-03-25 15:37:08 +0100
committerThomas White <taw@physics.org>2012-02-22 15:27:21 +0100
commitfbf804a26706a17c41bec5251ad0cacf9c4e1fa2 (patch)
tree7322876c6b3a71dce3079587334ad587d3135a17 /src
parentf59f52d4991587d6cd4698b9975db65b8632ce19 (diff)
Say which DirAx line couldn't be understood
Diffstat (limited to 'src')
-rw-r--r--src/dirax.c9
1 files 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;