Changeset 106
- Timestamp:
- Jun 28, 2006, 11:07:45 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/Parameter.cc
r104 r106 91 91 struct stat buf; 92 92 // check that root directory exists 93 if (stat(root_.c_str(),&buf)){ 94 std::cerr << "\nsvnstat: " << root_ << ": No such directory" 95 << std::endl; 96 exit(-1); 97 } 93 if (stat(root_.c_str(),&buf)) 94 throw std::runtime_error("\nsvnstat: " + root_ + ": No such directory."); 95 98 96 // check that target directory exists 99 97 if (stat(targetdir_.c_str(),&buf)){ 100 std::cerr << "\nsvnstat: " << targetdir_ << ": No such directory" 101 << std::endl; 102 exit(-1); 98 throw std::runtime_error("\nsvnstat: " + targetdir_ + 99 ": No such directory."); 103 100 } 104 101 }
Note: See TracChangeset
for help on using the changeset viewer.