aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaroslav Gevorkov <yaroslav.gevorkov@desy.de>2019-11-13 13:57:33 +0100
committerYaroslav Gevorkov <yaroslav.gevorkov@desy.de>2019-11-13 14:11:58 +0100
commit21b12a07fc1ee4f95527402630cd574925ab0131 (patch)
tree5a57cf36d9e66b5e97cfe5a2ee117dd6c59cb048
parentcf9651d68e04970063762d17f95814942f0518b5 (diff)
catch input error
-rw-r--r--libcrystfel/src/pinkindexer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libcrystfel/src/pinkindexer.c b/libcrystfel/src/pinkindexer.c
index 8736e75d..1ab977ba 100644
--- a/libcrystfel/src/pinkindexer.c
+++ b/libcrystfel/src/pinkindexer.c
@@ -165,6 +165,11 @@ void *pinkIndexer_prepare(IndexingMethod *indm, UnitCell *cell,
if ( (det->panels[0].clen_from != NULL) && pinkIndexer_opts->refinement_type ==
REFINEMENT_TYPE_firstFixedThenVariableLatticeParametersCenterAdjustmentMultiSeed) {
ERROR("Using center refinement makes it necessary to have the detector distance fixed in the geometry file!");
+ return NULL;
+ }
+ if(cell == NULL){
+ ERROR("Pink indexer needs a unit cell file to be specified!")
+ return NULL;
}
struct pinkIndexer_private_data* pinkIndexer_private_data = malloc(sizeof(struct pinkIndexer_private_data));