Changeset 1097 for trunk/lib/File.cc


Ignore:
Timestamp:
Jun 13, 2010, 5:23:43 AM (11 years ago)
Author:
Peter Johansson
Message:

avoid string 'svndigest: ' in exception message as we print 'svndigest: e.what()' in main. Also change svndigest to svncopyright in copyright warnings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/File.cc

    r1024 r1097  
    108108            Alias a(*a_iter,alias.size());
    109109            year_authors[rev_iter->first].insert(a);
    110             std::cerr << "svndigest: warning: no copyright alias found for `"
     110            std::cerr << "svncopyright: warning: no copyright alias found for `"
    111111                      << *a_iter << "'\n";
    112112            // insert alias to avoid multiple warnings.
     
    335335    if (!detect_copyright(old_block, start_line, end_line, prefix)){
    336336      if (Configuration::instance().missing_copyright_warning())
    337         std::cerr << "svndigest: warning: no copyright statement found in `"
     337        std::cerr << "svncopyright: warning: no copyright statement found in `"
    338338                  << path_ << "'\n";
    339339      return;
     
    450450    catch (std::runtime_error e) {
    451451      // catch exception, cleanup, and rethrow
    452       std::cerr << "svndigest: File::print_copyright: Exception caught, "
     452      std::cerr << "svncopyright: File::print_copyright: Exception caught, "
    453453                << "removing temporary file " << tmpname << std::endl;
    454454      if (unlink(tmpname))
Note: See TracChangeset for help on using the changeset viewer.