Commit f6d1944f6e627e2ceb2581ec286351b0ebf014da

Authored by Jürgen Knödlseder
1 parent ca3bbac7

Correct exception text

Showing 1 changed file with 6 additions and 6 deletions
src/app/GApplicationPars.cpp
... ... @@ -204,9 +204,9 @@ GApplicationPar& GApplicationPars::operator[](const std::string& name)
204 204  
205 205 // Throw exception if parameter name has not been found
206 206 if (index == -1) {
207   - std::string msg = "Parameter \""+name+"\" has not been found in"
208   - " parameter file.\n"
209   - "Please specify a valid parameter name.";
  207 + std::string msg = "Parameter \""+name+"\" has not been found in "
  208 + "parameter file. Please specify a valid parameter "
  209 + "name.";
210 210 throw GException::invalid_argument(G_ACCESS, msg);
211 211 }
212 212  
... ... @@ -231,9 +231,9 @@ const GApplicationPar& GApplicationPars::operator[](const std::string& name) con
231 231  
232 232 // Throw exception if parameter name has not been found
233 233 if (index == -1) {
234   - std::string msg = "Parameter \""+name+"\" has not been found in"
235   - " parameter file.\n"
236   - "Please specify a valid parameter name.";
  234 + std::string msg = "Parameter \""+name+"\" has not been found in "
  235 + "parameter file. Please specify a valid parameter "
  236 + "name.";
237 237 throw GException::invalid_argument(G_ACCESS, msg);
238 238 }
239 239  
... ...