aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2018-06-12 16:58:24 +0200
committerThomas White <taw@physics.org>2018-06-12 16:58:24 +0200
commit9be0dda6ceaf0cc5b2e7ca723cc583a47db178e6 (patch)
treeb79565229d0112e5fa9745855eca73e5dc39ae10 /src
parent4db987d3287416c43aa8f05880bda872e91c2e7c (diff)
list_events: Abort creation if event list can't be made for any file
Previously, it would exit if a file couldn't be opened, but not if its layout was wrong for the geometry file. Now, it always exits to allow the problem to be fixed.
Diffstat (limited to 'src')
-rw-r--r--src/list_events.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/list_events.c b/src/list_events.c
index ce48478b..c5f7ff9f 100644
--- a/src/list_events.c
+++ b/src/list_events.c
@@ -177,7 +177,8 @@ int main(int argc, char *argv[])
if ( evlist == NULL ) {
ERROR("Failed to read %s\n", filename);
hdfile_close(hdfile);
- continue;
+ ERROR("Aborting creation of event list.\n");
+ return 1;
}
for ( i=0; i<evlist->num_events; i++ ) {