aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2022-06-16 16:33:30 +0200
committerThomas White <taw@physics.org>2022-06-16 16:33:30 +0200
commit07217dbd38976849b50eb2c669ca902f068bdce9 (patch)
treeac0b96d901dfc6422d5842eb871a92fb408ffb62 /src
parent262064d3bb427e316c500adcf7ec0737c9fbd6f8 (diff)
ASAP::O: Exit quicker (and with explanation) if setup fails
Diffstat (limited to 'src')
-rw-r--r--src/im-asapo.h1
-rw-r--r--src/im-sandbox.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/im-asapo.h b/src/im-asapo.h
index ab68e1c2..e61ed530 100644
--- a/src/im-asapo.h
+++ b/src/im-asapo.h
@@ -61,6 +61,7 @@ static UNUSED struct im_asapo *im_asapo_connect(const char *endpoint,
const char *data_source,
const char *stream)
{
+ ERROR("This installation of CrystFEL was compiled without ASAP::O support.\n");
return NULL;
}
diff --git a/src/im-sandbox.c b/src/im-sandbox.c
index 83d2f043..0e5dfef9 100644
--- a/src/im-sandbox.c
+++ b/src/im-sandbox.c
@@ -367,6 +367,7 @@ static int run_work(const struct index_args *iargs, Stream *st,
sb->asapo_stream);
if ( asapostuff == NULL ) {
ERROR("ASAP::O setup failed.\n");
+ sb->shared->should_shutdown = 1;
return 1;
}
}