Changeset 637


Ignore:
Timestamp:
May 24, 2008, 2:15:13 AM (13 years ago)
Author:
Peter Johansson
Message:

improved msg in exception

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Stats.cc

    r636 r637  
    527527    assert(static_cast<size_t>(linetype) < stats_.size());
    528528    A2VConstIter i = stats_[linetype].find(author);
    529     if (i==stats_[linetype].end())
    530       throw std::runtime_error(author + " does not exist");
     529    if (i==stats_[linetype].end()){
     530      std::stringstream msg;
     531      msg << __FILE__ << " author: " << author << " does not exist"; 
     532      throw std::runtime_error(msg.str());
     533    }
    531534    assert(rev < i->second.size());
    532535    return i->second[rev];
Note: See TracChangeset for help on using the changeset viewer.