Changeset 810 for trunk


Ignore:
Timestamp:
Aug 6, 2009, 5:49:16 AM (12 years ago)
Author:
Peter Johansson
Message:

fixes #389

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r757 r810  
    427427    catch (std::runtime_error e) {
    428428      // catch exception, cleanup, and rethrow
    429       std::cerr << "File::print_copyright: Exception caught, "
     429      std::cerr << "svndigest: File::print_copyright: Exception caught, "
    430430                << "removing temporary file " << tmpname << std::endl;
    431431      if (unlink(tmpname))
  • trunk/lib/rmdirhier.cc

    r809 r810  
    2525
    2626#include <dirent.h>
     27#include <cerrno>
    2728#include <fcntl.h>
    2829#include <iostream>
     
    4344    }
    4445    catch(const BadDirectory& x) {
    45       std::cerr << "Invalid directory: " << x.what() << std::endl;
     46      std::cerr << "svndigest: " << x.what() << "\n"
     47                << strerror(errno) << std::endl;
    4648    }
    4749    catch(const DirectoryOpenError& x) {
    48       std::cerr << "Error opening directory: " << x.what() << std::endl;
     50      std::cerr << "svndigest: cannot open directory " << x.what() << "\n"
     51                << strerror(errno) << "\n";
    4952    }
    5053    catch(const FileDeleteError& x) {
    51       std::cerr << "Error deleting file: " << x.what() << std::endl;
     54      std::cerr << "svndigest: cannot delete file " << x.what() << "\n"
     55                << strerror(errno) << "\n";
    5256    }
    5357    catch(const DirectoryDeleteError& x) {
    54       std::cerr << "Error deleting directory: " << x.what() << std::endl;
    55     }
    56     catch(const DirectoryError& x) {
    57       std::cerr << "Directory error:" << x.what() << std::endl;
     58      std::cerr << "svndigest: cannot delete directory " << x.what() << "\n"
     59                << strerror(errno) << "\n";
    5860    }
    5961
Note: See TracChangeset for help on using the changeset viewer.