]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Provide a better error message. 17239/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 9 Jul 2024 21:18:56 +0000 (15:18 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 9 Jul 2024 21:18:56 +0000 (15:18 -0600)
source/base/parameter_handler.cc

index 15ccac94b2850d98049829817b5b3d5410d3d68e..a5a6317bef034846ed820558e2172bb652460288 100644 (file)
@@ -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)

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.