Changeset 1217
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/SVN.cc
r1216 r1217 132 132 context_->cancel_baton, pool_))){ 133 133 if (err->apr_err == SVN_ERR_WC_NOT_DIRECTORY) 134 cleanup_failed_init(err, std::string(err->message) , true);134 cleanup_failed_init(err, std::string(err->message)); 135 135 cleanup_failed_init(err, "SVN: svn_wc_adm_open3 failed"); 136 136 } … … 173 173 174 174 175 void SVN::cleanup_failed_init(svn_error_t *err, const std::string& message, 176 bool mute) 175 void SVN::cleanup_failed_init(svn_error_t *err, const std::string& message) 177 176 { 178 177 assert(message.size()); // compatible with r1213 -
trunk/lib/SVN.h
r1215 r1217 243 243 @brief Free resources when svn API calls fail. 244 244 245 This function will write an error message to stdout, free \a 246 err and \a pool resources. If \a err or \a pool are a NULL 247 pointers the function will do nothing with these resources. If 248 \a mute is true, no error message is written. 249 250 cleanup will throw a SVNException if \a message has 251 length>0. The default bahaviour is to free resources and return 252 normally. 245 This function will free \a pool resources and throw an 246 exception holding the \a message. If mute is false, the thrown 247 exception also contains \a err. 248 249 \throw cleanup will throw a SVNException 253 250 254 251 @see SVNException … … 267 264 @see SVNException 268 265 */ 269 void cleanup_failed_init(svn_error_t *err, const std::string& message, 270 bool mute=false); 266 void cleanup_failed_init(svn_error_t *err, const std::string& message); 271 267 272 268 static SVN* instance_;
Note: See TracChangeset
for help on using the changeset viewer.