Illumina / interop

C++ Library to parse Illumina InterOp files
http://illumina.github.io/interop/index.html
GNU General Public License v3.0
75 stars 26 forks source link

`summary` returns "0" exit code on invalid run #312

Closed tetedange13 closed 1 year ago

tetedange13 commented 1 year ago

Hi,
Sorry if this a duplicate, but it looks like summary binary send 0 exit code when run is invalid => Exemple with "invalid_run" being a run with missing RunInfo.xml

$ InterOp-1.2.1-Linux-GNU/bin/summary invalid_run ; echo $?
# Version: v1.2.1
invalid_run
cannot open file invalid_run/RunInfo.xml
/io/src/interop/model/run/info.cpp::read_file (300)
0

Contrary to imaging_table which correctly send non-0 exit code :

$ InterOp-1.2.1-Linux-GNU/bin/imaging_table invalid_run ; echo $?
# Version: v1.2.1
# Run Folder: invalid_run
cannot open file invalid/RunInfo.xml
/io/src/interop/model/run/info.cpp::read_file (300)
5


Hope this helps !

Kind regards, Felix