/[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.1.2.1 by kusanagi, Fri Mar 4 10:29:26 2005 UTC revision 2.2 by kusanagi, Tue Feb 15 17:55:25 2005 UTC
# Line 42  int main(int argc, char* argv[]) { Line 42  int main(int argc, char* argv[]) {
42      char *outDir;      char *outDir;
43      try {      try {
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. Please check your environment variables.");
46      } catch (NotFoundEnvironmentVarException exc) {      } catch (NotFoundEnvironmentVarException exc) {
      cout << "The variable YODA_DATA has not been found. \n";  
      cout << "Please check your environment variables \n";  
47       oss.str("");       oss.str("");
48       oss << exc.print();       oss << exc.print();
49       logger->fatal(oss.str().c_str());       logger->fatal(oss.str().c_str());
      exit(1);  
50      }      }
51    
52      string pathDir(outDir);      string pathDir(outDir);

Legend:
Removed from v.2.1.2.1  
changed lines
  Added in v.2.2

  ViewVC Help
Powered by ViewVC 1.1.23