]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Simplify an assertion
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 Mar 2007 01:04:29 +0000 (01:04 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 5 Mar 2007 01:04:29 +0000 (01:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@14519 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/parameter_handler.cc

index 6fe7648e89c05471f5a835a67e3c1c2ed9803701..6dd3ed457dec5f5cc9108d9b777c1a80bfba445b 100644 (file)
@@ -555,10 +555,8 @@ bool ParameterHandler::read_input (const std::string &filename,
     {
       std::string openname = search.find(filename);
       std::ifstream input (openname.c_str());
-      if (!input) 
-       {
-         AssertThrow(false, ExcInternalError());
-       }
+      AssertThrow(input, ExcIO());
+
       return read_input (input);
     }
   catch (...)

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.