From 9be0dda6ceaf0cc5b2e7ca723cc583a47db178e6 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 12 Jun 2018 16:58:24 +0200 Subject: 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. --- src/list_events.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; inum_events; i++ ) { -- cgit v1.2.3