Show
Ignore:
Timestamp:
09/26/07 13:52:30 (1 year ago)
Author:
patrick
Message:

MFT r20869: Protect against operator error if an invalid path is set in the

module's …_BASE_DIR environment variable.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/branches/2.2/modules/sonix/snx/snxmain.cpp

    r20788 r20870  
    260260   else 
    261261   { 
    262       base_dir = fs::path(env_dir, fs::native); 
     262      try 
     263      { 
     264         base_dir = fs::path(env_dir, fs::native); 
     265      } 
     266      catch (fs::filesystem_error& ex) 
     267      { 
     268         std::cerr << "Invalid path set in SNX_BASE_DIR environment " 
     269                   << "variable:\n" << ex.what() << std::endl; 
     270      } 
    263271   } 
    264272