/[PAMELA software]/yoda/techmodel/techmodelreader.cpp
ViewVC logotype

Diff of /yoda/techmodel/techmodelreader.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2.3 by kusanagi, Tue Feb 15 18:16:44 2005 UTC revision 2.4 by kusanagi, Fri Feb 18 13:11:17 2005 UTC
# Line 44  int main(int argc, char* argv[]) { Line 44  int main(int argc, char* argv[]) {
44      outDir = getenv("YODA_DATA");      outDir = getenv("YODA_DATA");
45      if (getenv("YODA_DATA") == NULL) throw NotFoundEnvironmentVarException("The variable YODA_DATA has not been found.");      if (getenv("YODA_DATA") == NULL) throw NotFoundEnvironmentVarException("The variable YODA_DATA has not been found.");
46      } catch (NotFoundEnvironmentVarException exc) {      } catch (NotFoundEnvironmentVarException exc) {
47         cout << "The variable YODA_DATA has not been found. \n";
48         cout << "Please check your environment variables \n";
49       oss.str("");       oss.str("");
50       oss << exc.print();       oss << exc.print();
51       logger->fatal(oss.str().c_str());       logger->fatal(oss.str().c_str());
      cout << "The variable YODA_DATA has not been found. \n";  
      cout << "Please check your environment variables \n";  
52       exit(1);       exit(1);
53      }      }
54    

Legend:
Removed from v.2.3  
changed lines
  Added in v.2.4

  ViewVC Help
Powered by ViewVC 1.1.23