about summary refs log tree commit diff
path: root/uploader/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'uploader/scripts')
-rw-r--r--uploader/scripts/genotypes/preprocess_csv_collect_info.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/uploader/scripts/genotypes/preprocess_csv_collect_info.py b/uploader/scripts/genotypes/preprocess_csv_collect_info.py
index db2fbad..c32e5cd 100644
--- a/uploader/scripts/genotypes/preprocess_csv_collect_info.py
+++ b/uploader/scripts/genotypes/preprocess_csv_collect_info.py
@@ -506,7 +506,8 @@ if __name__ == "__main__":
                     "transposed": args.is_transposed
                 })
             print(json.dumps(asdict(stats)))
-            return SysExit.OK
+            return (
+                SysExit.OK if len(stats.errors)==0 else SysExit.GENERALERROR)
         except FileNotFoundError as _fnf:
             logger.error(", ".join(str(arg) for arg in _fnf.args), exc_info=True)
             return SysExit.FILENOTFOUND