203
203
for( int vpos = pos; vpos < end; ++vpos )
204
204
variable += fileName[vpos];
205
205
if(getenv( variable.c_str() ) == NULL)
206
throw(Squeal(Squeal::recoverable, "Error - "+variable+" environment variable was not defined", "RFFieldMap::ReplaceVariables"));
206
throw(MAUS::Exception(MAUS::Exception::recoverable, "Error - "+variable+" environment variable was not defined", "RFFieldMap::ReplaceVariables"));
207
207
fullName += std::string( getenv( variable.c_str() ) );