From 6b15b8530f3e06b350f5409315e63be7d1094b05 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Wed, 17 Jul 2024 08:19:34 -0500 Subject: [PATCH] ParameterHandler/ParameterAcceptor: do not use PathSearch::ExcFileNotFound --- source/base/parameter_acceptor.cc | 2 +- source/base/parameter_handler.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/base/parameter_acceptor.cc b/source/base/parameter_acceptor.cc index c00a0d9155..371134a25b 100644 --- a/source/base/parameter_acceptor.cc +++ b/source/base/parameter_acceptor.cc @@ -91,7 +91,7 @@ ParameterAcceptor::initialize( { prm.parse_input(filename); } - catch (const dealii::PathSearch::ExcFileNotFound &) + catch (const dealii::ExcFileNotOpen &) { prm.print_parameters(filename, output_style_for_filename); AssertThrow(false, diff --git a/source/base/parameter_handler.cc b/source/base/parameter_handler.cc index a5a6317bef..189910f9fe 100644 --- a/source/base/parameter_handler.cc +++ b/source/base/parameter_handler.cc @@ -569,7 +569,7 @@ ParameterHandler::parse_input(const std::string &filename, const bool assert_mandatory_entries_are_found) { std::ifstream is(filename); - AssertThrow(is, PathSearch::ExcFileNotFound(filename, "ParameterHandler")); + AssertThrow(is, ExcFileNotOpen(filename)); std::string file_ending = filename.substr(filename.find_last_of('.') + 1); boost::algorithm::to_lower(file_ending); -- 2.39.5