Changeset 503 for trunk/bin


Ignore:
Timestamp:
Nov 27, 2007, 1:56:57 AM (14 years ago)
Author:
Peter Johansson
Message:

Fixes bug in Date class related to Daylight saving time. Also fixes ticket #282 (catch exception 'directory already exists' in main)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/svndigest.cc

    r497 r503  
    111111  std::string target_path=option->targetdir() + '/' + file_name(option->root());
    112112  bool need_to_erase_target = node_exist(target_path);
    113   if (need_to_erase_target && !option->force())
    114     throw std::runtime_error(std::string("svndigest: directory (") +
    115                              target_path + ") already exists");
     113  if (need_to_erase_target && !option->force()) {
     114    std::cerr << "svndigest: directory `"
     115              << target_path << "' already exists\n";
     116    exit(-1);
     117  }
    116118
    117119  // Extract repository location
Note: See TracChangeset for help on using the changeset viewer.