From: Wolfgang Bangerth Date: Thu, 22 Feb 2018 05:42:01 +0000 (-0700) Subject: Inline a message text instead of going through contortions. X-Git-Tag: v9.0.0-rc1~395^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f7b5101f8f8582b976d79d32e12f18b27393226;p=dealii.git Inline a message text instead of going through contortions. --- diff --git a/examples/step-32/step-32.cc b/examples/step-32/step-32.cc index 782bff6766..68afe56909 100644 --- a/examples/step-32/step-32.cc +++ b/examples/step-32/step-32.cc @@ -75,7 +75,6 @@ #include #include -#include #include #include #include @@ -1040,18 +1039,13 @@ namespace Step32 { parameter_file.close (); - std::ostringstream message; - message << "Input parameter file <" - << parameter_filename << "> not found. Creating a" - << std::endl - << "template file of the same name." - << std::endl; - std::ofstream parameter_out (parameter_filename.c_str()); prm.print_parameters (parameter_out, ParameterHandler::Text); - AssertThrow (false, ExcMessage (message.str().c_str())); + AssertThrow (false, ExcMessage ("Input parameter file <" + + parameter_filename + +"> not found. Creating a template file of the same name.")); } prm.parse_input (parameter_file);