From f1d91a6cbedc598d7cba0ab6951ec33d50bf5f65 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 5 May 2023 14:33:21 -0600 Subject: [PATCH] Catch and rethrow *all* exceptions. --- source/sundials/kinsol.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/sundials/kinsol.cc b/source/sundials/kinsol.cc index a1db0684e1..fa4d330f84 100644 --- a/source/sundials/kinsol.cc +++ b/source/sundials/kinsol.cc @@ -115,7 +115,7 @@ namespace SUNDIALS } // For any other exception, capture the exception and // return -1: - catch (const std::exception &) + catch (...) { eptr = std::current_exception(); return -1; -- 2.39.5