aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-04-23 15:22:39 +0200
committerThomas White <taw@physics.org>2021-04-23 16:29:39 +0200
commit2e228aa06f5d8635e7e8226679ac0eb9acf32136 (patch)
tree5541205428b58d9722b7d3df2bd59fb6e1d08472
parentdabd5fc6bb68dbc3f0dbaa1d22ee08e8f26e6a3f (diff)
Clarify some error messages
-rw-r--r--libcrystfel/src/image.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c
index e7d470a5..ad651cae 100644
--- a/libcrystfel/src/image.c
+++ b/libcrystfel/src/image.c
@@ -398,7 +398,8 @@ static double get_value(struct image *image, const char *from,
break;
default:
- ERROR("Unrecognised file type %i\n", image->data_source_type);
+ ERROR("Unrecognised file type %i (get_value)\n",
+ image->data_source_type);
return 1;
}
@@ -417,7 +418,7 @@ static double get_value(struct image *image, const char *from,
static DataSourceType file_type(const char *filename)
{
if ( !file_exists(filename) ) {
- ERROR("File not found: %s\n", filename);
+ ERROR("File not found: %s (file_type)\n", filename);
return DST_UNKNOWN;
}
@@ -431,7 +432,7 @@ static DataSourceType file_type(const char *filename)
return DST_CBFGZ;
} else {
- ERROR("Unrecognised file type: %s\n", filename);
+ ERROR("Unrecognised file type: %s (file_type)\n", filename);
return DST_UNKNOWN;
}
}
@@ -671,7 +672,7 @@ static int image_read_image_data(struct image *image,
if ( (image->filename != NULL)
&& (!file_exists(image->filename)) )
{
- ERROR("File not found: %s\n", image->filename);
+ ERROR("File not found: %s (read data)\n", image->filename);
return image_set_zero_data(image, dtempl);
}
@@ -696,7 +697,8 @@ static int image_read_image_data(struct image *image,
image->data_block_size);
default:
- ERROR("Unrecognised file type %i\n", image->data_source_type);
+ ERROR("Unrecognised file type %i (image_read_image_data)\n",
+ image->data_source_type);
return 1;
}
}