From b56e63ee559fc3d3388374c079d71636145bdd63 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Fri, 31 Mar 2017 10:45:31 +0200 Subject: geoptimiser: Show peak information when there is a problem --- src/geoptimiser.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/geoptimiser.c b/src/geoptimiser.c index f7894787..2c9074d6 100644 --- a/src/geoptimiser.c +++ b/src/geoptimiser.c @@ -790,7 +790,14 @@ static int compute_pixel_displacements(struct image *images, int n_images, r = add_distance_to_list(gp, imfe, refl, fx, fy, det_shift); - if ( r ) return r; + if ( r ) { + ERROR("Error processing peak %f,%f " + "(panel %s), image %s %s\n", + imfe->fs, imfe->ss, gp->p->name, + images[cp].filename, + get_event_string(images[cp].event)); + return r; + } } } -- cgit v1.2.3