From: Wolfgang Bangerth Date: Tue, 9 Jul 2024 21:18:56 +0000 (-0600) Subject: Provide a better error message. X-Git-Tag: v9.6.0-rc1~114^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F17239%2Fhead;p=dealii.git Provide a better error message. --- diff --git a/source/base/parameter_handler.cc b/source/base/parameter_handler.cc index 15ccac94b2..a5a6317bef 100644 --- a/source/base/parameter_handler.cc +++ b/source/base/parameter_handler.cc @@ -581,7 +581,9 @@ ParameterHandler::parse_input(const std::string &filename, parse_input_from_json(is, skip_undefined); else AssertThrow(false, - ExcMessage("Unknown input file name extension. Supported types " + ExcMessage("The given input file <" + filename + + "> has a file name extension <" + file_ending + + "> that is not recognized. Supported types " "are .prm, .xml, and .json.")); if (assert_mandatory_entries_are_found)