add check that we have a valid rntuple in the file
This commit is contained in:
parent
e8092a54f2
commit
53155ee2c7
1 changed files with 3 additions and 1 deletions
|
@ -136,7 +136,9 @@ int main(int argc, char **argv)
|
|||
app.ntpl_name = args.ntpl_name; // may be null
|
||||
app.base_display_addr = args.start_addr;
|
||||
b8 success = get_tfile_data(arena, app.inspected_file, app.ntpl_name, app.tfile_data);
|
||||
if (success)
|
||||
if (!app.ntpl_name.str)
|
||||
fprintf(stderr, "Warning: found no RNTuples in %s\n", args.file_name.c());
|
||||
else if (success)
|
||||
app.rndata = get_rntuple_data(arena, app.inspected_file, app.ntpl_name, args.extended_info);
|
||||
|
||||
if (args.print_to_terminal) {
|
||||
|
|
Loading…
Add table
Reference in a new issue