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/mosflm.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libcrystfel/src/mosflm.c') diff --git a/libcrystfel/src/mosflm.c b/libcrystfel/src/mosflm.c index d4034e86..14cd9d96 100644 --- a/libcrystfel/src/mosflm.c +++ b/libcrystfel/src/mosflm.c @@ -821,6 +821,12 @@ void *mosflm_prepare(IndexingMethod *indm, UnitCell *cell) { struct mosflm_private *mp; + if ( mosflm_probe(cell) == NULL ) { + ERROR("Mosflm does not appear to run properly.\n"); + ERROR("Please check your Mosflm installation.\n"); + return NULL; + } + /* Flags that MOSFLM knows about */ *indm &= INDEXING_METHOD_MASK | INDEXING_USE_LATTICE_TYPE | INDEXING_USE_CELL_PARAMETERS; -- cgit v1.2.3