From 6239330e483a47c3579b89c407ac02346f388e27 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 21 Sep 2017 16:18:22 +0200 Subject: Improve error message when using CBF files and a multi-event geometry --- src/im-sandbox.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/im-sandbox.c') diff --git a/src/im-sandbox.c b/src/im-sandbox.c index 60400ad8..8b7eb29c 100644 --- a/src/im-sandbox.c +++ b/src/im-sandbox.c @@ -219,6 +219,14 @@ static struct filename_plus_event *get_pattern(FILE *fh, int config_basename, if ( det->path_dim != 0 || det->dim_dim != 0 ) { + if ( is_cbf_file(filename) ) { + ERROR("Your geometry file is for a multi-event " + "format, but this file is in CBF format.\n"); + ERROR("Your geometry file probably needs to be " + "changed.\n"); + return NULL; + } + ev_list = initialize_event_list(); if ( scan_check == 1 ) { -- cgit v1.2.3