| 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. Please check your environment variables."); | 
     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()); | 
| 52 | 
  | 
      exit(1); | 
| 53 | 
     } | 
     } | 
| 54 | 
  | 
  | 
| 55 | 
     string pathDir(outDir); | 
     string pathDir(outDir); |