diff --git a/src/util/Exception.cxx b/src/util/Exception.cxx index 621590ebd..46a7d1558 100644 --- a/src/util/Exception.cxx +++ b/src/util/Exception.cxx @@ -32,7 +32,7 @@ #include std::string -FullMessage(std::exception_ptr ep) +FullMessage(std::exception_ptr ep) noexcept { try { std::rethrow_exception(ep); diff --git a/src/util/Exception.hxx b/src/util/Exception.hxx index 6cbda949d..9b8f9887d 100644 --- a/src/util/Exception.hxx +++ b/src/util/Exception.hxx @@ -38,6 +38,6 @@ * exceptions (if any). */ std::string -FullMessage(std::exception_ptr ep); +FullMessage(std::exception_ptr ep) noexcept; #endif