Changeset 1066 for trunk/bin


Ignore:
Timestamp:
Jun 6, 2010, 3:06:57 AM (11 years ago)
Author:
Peter Johansson
Message:

avoid hard-coding program name svndigest in Parameter class. refs #307

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/Parameter.cc

    r1064 r1066  
    102102      if (chdir(root_.value().c_str())) {
    103103        std::stringstream ss;
    104         ss << "svndigest: cannot read `" << root_.value() << "': "
     104        ss << cmd_.program_name() << ": cannot read `" << root_.value() << "': "
    105105           << strerror(errno);
    106106        throw yat::utility::cmd_error(ss.str());
     
    125125      if (!S_ISREG(nodestat.st_mode)) {
    126126        std::stringstream ss;
    127         ss << "svndigest: `" << config_file_.value()
     127        ss << cmd_.program_name() << ": `" << config_file_.value()
    128128           << "' is not a regular file";
    129129        throw yat::utility::cmd_error(ss.str());
     
    139139      return;
    140140    std::stringstream ss;
    141     ss << "svndigest: cannot stat `" << path << "': " << strerror(errno);
     141    ss << cmd_.program_name() << ": cannot stat `" << path << "': "
     142       << strerror(errno);
    142143    throw yat::utility::cmd_error(ss.str());
    143144  }
     
    149150      return;
    150151    std::stringstream ss;
    151     ss << "svndigest: cannot open `" << path << "': " << strerror(errno);
     152    ss << cmd_.program_name() << ": cannot open `" << path << "': "
     153       << strerror(errno);
    152154    throw yat::utility::cmd_error(ss.str());
    153155  }
Note: See TracChangeset for help on using the changeset viewer.