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/dirax.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libcrystfel/src/dirax.c') diff --git a/libcrystfel/src/dirax.c b/libcrystfel/src/dirax.c index 1dacd021..488eb7db 100644 --- a/libcrystfel/src/dirax.c +++ b/libcrystfel/src/dirax.c @@ -604,6 +604,12 @@ void *dirax_prepare(IndexingMethod *indm, UnitCell *cell) { struct dirax_private *dp; + if ( dirax_probe(cell) == NULL ) { + ERROR("DirAx does not appear to run properly.\n"); + ERROR("Please check your DirAx installation.\n"); + return NULL; + } + /* Flags that DirAx knows about */ *indm &= INDEXING_METHOD_MASK; -- cgit v1.2.3