13
0

More informative debug output from SessionMetadata::{get|set}_value()

This commit is contained in:
Colin Fletcher 2015-02-11 18:40:18 +00:00 committed by Paul Davis
parent 2a7cf7455a
commit cc4eb495d9

View File

@ -122,8 +122,8 @@ SessionMetadata::get_value (const string & name) const
if (it == map.end()) {
it = user_map.find (name);
if (it == user_map.end()) {
// Should not be reached!
std::cerr << "Programming error in SessionMetadata::get_value" << std::endl;
// Should not be reached, except if loading metadata from a newer version with a new type
std::cerr << "Programming error in SessionMetadata::get_value (" << name << ")" << std::endl;
return "";
}
}
@ -144,8 +144,8 @@ SessionMetadata::set_value (const string & name, const string & value)
if (it == map.end()) {
it = user_map.find (name);
if (it == user_map.end()) {
// Should not be reached!
std::cerr << "Programming error in SessionMetadata::set_value" << std::endl;
// Should not be reached, except if loading metadata from a newer version with a new type
std::cerr << "Programming error in SessionMetadata::set_value (" << name << ")" << std::endl;
return;
}
}