Changeset 565 for library/bdm/osutils.cpp
- Timestamp:
- 08/19/09 16:54:24 (15 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
library/bdm/osutils.cpp
r497 r565 12 12 13 13 #include "osutils.h" 14 #include "bdmerror.h" 14 15 #include <iostream> 15 16 #include <stdexcept> … … 47 48 #endif 48 49 { 49 if ( ( rewrite ) && ( errno == EEXIST ) ) it_warning ( "rewriting directory" );50 else it_error ( "dirfilelog:: cannot create directory" );50 if ( ( rewrite ) && ( errno == EEXIST ) ) bdm_warning ( "rewriting directory" ); 51 else bdm_error ( "dirfilelog:: cannot create directory" ); 51 52 } 52 53 } … … 79 80 std::string msg = "can't remove dir "; 80 81 msg += path; 81 throw std::runtime_error ( msg );82 bdm_error ( msg ); 82 83 } 83 84 } else { … … 87 88 std::string msg = "can't remove file "; 88 89 msg += path; 89 throw std::runtime_error ( msg );90 bdm_error ( msg ); 90 91 } 91 92 } else { … … 93 94 std::string msg = "can't remove "; 94 95 msg += path; 95 throw std::runtime_error ( msg );96 bdm_error ( msg ); 96 97 } else { 97 98 // it wasn't there in the first place