diff options
author | Thomas White <taw@physics.org> | 2017-03-31 10:45:31 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-03-31 16:42:55 +0200 |
commit | b56e63ee559fc3d3388374c079d71636145bdd63 (patch) | |
tree | 5aa77bb8b2a60d0a53d4b07101910e76cf2de4e8 /src | |
parent | 6ac1249d79f77826695a0ff79af610479c3d978e (diff) |
geoptimiser: Show peak information when there is a problem
Diffstat (limited to 'src')
-rw-r--r-- | src/geoptimiser.c | 9 |
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; + } } } |