diff --git a/algorithms_cpp/include/embb/algorithms/merge_sort.h b/algorithms_cpp/include/embb/algorithms/merge_sort.h index 432f767..5042eb9 100644 --- a/algorithms_cpp/include/embb/algorithms/merge_sort.h +++ b/algorithms_cpp/include/embb/algorithms/merge_sort.h @@ -174,12 +174,14 @@ void MergeSortAllocate( } value_type* temporary = static_cast( Alloc::Allocate(distance * sizeof(value_type))); + EMBB_TRY { MergeSort(first, last, temporary, comparison, policy, block_size); } EMBB_CATCH (embb::base::ErrorException & e) { // embb exception handling does not support catch(...) and rethrow yet. Alloc::Free(temporary); - EMBB_THROW(embb::base::ErrorException, e.what()); + EMBB_THROW(embb::base::ErrorException, \ + "Rethrown exception of type ErrorException"); } Alloc::Free(temporary); }