diff --git a/src/analysis/hmr.cpp b/src/analysis/hmr.cpp index ea9455f8..c26a564e 100644 --- a/src/analysis/hmr.cpp +++ b/src/analysis/hmr.cpp @@ -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 @@ -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; }