Fixed message
parent
6e691b06ff
commit
fb8283cf11
|
@ -34,8 +34,8 @@ const TypeAttributes& TypeAttributesTable::attributes(const string& key) const {
|
||||||
try {
|
try {
|
||||||
return table_.at(key);
|
return table_.at(key);
|
||||||
} catch (const out_of_range& oor) {
|
} catch (const out_of_range& oor) {
|
||||||
cerr << "Class::method: key not found: " << oor.what()
|
cerr << "TypeAttributesTable::attributes: key " << key
|
||||||
<< ", methods are:\n";
|
<< " not found. Valid keys are:\n";
|
||||||
using boost::adaptors::map_keys;
|
using boost::adaptors::map_keys;
|
||||||
ostream_iterator<string> out_it(cerr, "\n");
|
ostream_iterator<string> out_it(cerr, "\n");
|
||||||
boost::copy(table_ | map_keys, out_it);
|
boost::copy(table_ | map_keys, out_it);
|
||||||
|
|
Loading…
Reference in New Issue