]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Better error message.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 18 Apr 2005 21:27:37 +0000 (21:27 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 18 Apr 2005 21:27:37 +0000 (21:27 +0000)
git-svn-id: https://svn.dealii.org/trunk@10514 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/data_out_base.cc

index 06b8a49c4f672e687f121d3c51048ed6aadd4b09..03b5a0962596bb673e653f268efdacaf2b36be3e 100644 (file)
@@ -4389,7 +4389,9 @@ parse_output_format (const std::string &format_name)
   if (format_name == "deal.II intermediate")
     return deal_II_intermediate;
   
-  AssertThrow (false, ExcInvalidState ());
+  AssertThrow (false,
+               ExcMessage ((std::string("The format <") + format_name +
+                            std::string("> is not recognized")).c_str()));
 
                                   // return something invalid
   return OutputFormat(-1);

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.