Skip to content

Commit

Permalink
Merge pull request #177 from smithlabcode/exit-success-on-insufficien…
Browse files Browse the repository at this point in the history
…t-data

HMR exit success on insufficient data
  • Loading branch information
andrewdavidsmith authored Oct 28, 2023
2 parents 425804c + 50e285e commit 756213e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/analysis/hmr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ main_hmr(int argc, const char **argv) {
if (!summary_out) throw runtime_error("failed to open: " + summary_file);
summary_out << hmr_summary({}).tostring() << endl;
}
return EXIT_FAILURE;
return EXIT_SUCCESS;
}

// separate the regions by chrom and by desert, and eliminate
Expand Down Expand Up @@ -615,9 +615,5 @@ main_hmr(int argc, const char **argv) {
cerr << e.what() << endl;
return EXIT_FAILURE;
}
catch (std::bad_alloc &ba) {
cerr << "ERROR: could not allocate memory" << endl;
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}

0 comments on commit 756213e

Please sign in to comment.