Fixed return value for deserialize() implementations. #3250

This commit is contained in:
Alessandro Ranellucci committed 2016-03-13 15:26:52 +01:00
1 parent b9127e163b
commit 6e5938c833
2 files changed
+12 -5

No files matched your search

+4 -1
View File
@@ -63,7 +63,10 @@ ConfigBase::apply(const ConfigBase &other, bool ignore_nonexistent) {
// not the most efficient way, but easier than casting pointers to subclasses
bool res = my_opt->deserialize( other.option(*it)->serialize() );
if (!res) CONFESS("Unexpected failure when deserializing serialized value");
if (!res) {
std::string error = "Unexpected failure when deserializing serialized value for " + *it;
CONFESS(error.c_str());
}
}
}