aboutsummaryrefslogtreecommitdiff
path: root/src/geoptimiser.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-03-31 10:45:31 +0200
committerThomas White <taw@physics.org>2017-03-31 16:42:55 +0200
commitb56e63ee559fc3d3388374c079d71636145bdd63 (patch)
tree5aa77bb8b2a60d0a53d4b07101910e76cf2de4e8 /src/geoptimiser.c
parent6ac1249d79f77826695a0ff79af610479c3d978e (diff)
geoptimiser: Show peak information when there is a problem
Diffstat (limited to 'src/geoptimiser.c')
-rw-r--r--src/geoptimiser.c9
1 files changed, 8 insertions, 1 deletions
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;
+ }
}
}