diff options
author | Thomas White <taw@physics.org> | 2020-03-10 14:34:09 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-07-29 18:42:24 +0200 |
commit | cae5d80ec400bfe8b4989692398870a8a3f37719 (patch) | |
tree | 8901ce8790118775dbfab497b70cf2d90c486b4e /src | |
parent | 30c69ebc7d0647e0935fc6b0cd35bcb9f5e01d95 (diff) |
Show error if image loading fails
Diffstat (limited to 'src')
-rw-r--r-- | src/crystfelimageview.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/crystfelimageview.c b/src/crystfelimageview.c index 33feb46a..10683d72 100644 --- a/src/crystfelimageview.c +++ b/src/crystfelimageview.c @@ -528,7 +528,10 @@ static int reload_image(CrystFELImageView *iv) cleanup_image(iv); iv->image = image_read(iv->dtempl, iv->filename, iv->event); - if ( iv->image == NULL ) return 1; + if ( iv->image == NULL ) { + ERROR("Failed to load image\n"); + return 1; + } iv->pixbufs = render_panels(iv->image, 1, SCALE_COLOUR, 5, &n_pb); if ( n_pb != iv->image->detgeom->n_panels ) { |