From e18c025df6f5d8e2ecd0b0ac2b827e657fb53415 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 18 Oct 2017 11:58:50 +0200 Subject: Check that dirax,felix,mosflm or xds are available at the start Avoids a confusing error message later. --- libcrystfel/src/xds.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libcrystfel/src/xds.c') diff --git a/libcrystfel/src/xds.c b/libcrystfel/src/xds.c index a234d1e0..bd98aec4 100644 --- a/libcrystfel/src/xds.c +++ b/libcrystfel/src/xds.c @@ -45,6 +45,7 @@ #include #include +#include "xds.h" #include "cell.h" #include "image.h" #include "utils.h" @@ -596,6 +597,12 @@ void *xds_prepare(IndexingMethod *indm, UnitCell *cell) { struct xds_private *xp; + if ( xds_probe(cell) == NULL ) { + ERROR("XDS does not appear to run properly.\n"); + ERROR("Please check your XDS installation.\n"); + return NULL; + } + /* Either cell,latt and cell provided, or nocell-nolatt and no cell * - complain about anything else. Could figure this out automatically, * but we'd have to decide whether the user just forgot the cell, or -- cgit v1.2.3