aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/image.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-05-05 17:06:12 +0200
committerThomas White <taw@physics.org>2017-05-05 17:06:12 +0200
commitcdd75c7fadfcd2dadee101611a00dcf0d0e6ec5c (patch)
treea1c7da3fa7765c9183781f39003cb3c980de569e /libcrystfel/src/image.c
parent9104fb61c53f7d7d8fcb32627a7f87c2062ef496 (diff)
Show filename of CBF file if it can't be read
Diffstat (limited to 'libcrystfel/src/image.c')
-rw-r--r--libcrystfel/src/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcrystfel/src/image.c b/libcrystfel/src/image.c
index 849d95bf..c03b60d8 100644
--- a/libcrystfel/src/image.c
+++ b/libcrystfel/src/image.c
@@ -587,7 +587,7 @@ static int read_cbf(struct imagefile *f, struct image *image)
/* CBFlib calls fclose(fh) when it's ready */
if ( cbf_read_widefile(cbfh, fh, 0) ) {
- ERROR("Failed to read CBF file\n");
+ ERROR("Failed to read CBF file '%s'\n", f->filename);
cbf_free_handle(cbfh);
return 1;
}