if (auth.size != candidate.size) {
if (error != CLEAN)
errorstream << ", ";
- error = SHALLOW_ERROR;
+ if (error != DEEP_ERROR)
+ error = SHALLOW_ERROR;
bool known = auth.size == be_get_ondisk_size(auth_oi.size);
errorstream << "size " << candidate.size
<< " != "
if (!candidate.attrs.count(i->first)) {
if (error != CLEAN)
errorstream << ", ";
- error = SHALLOW_ERROR;
+ if (error != DEEP_ERROR)
+ error = SHALLOW_ERROR;
errorstream << "missing attr " << i->first;
} else if (candidate.attrs.find(i->first)->second.cmp(i->second)) {
if (error != CLEAN)
errorstream << ", ";
- error = SHALLOW_ERROR;
+ if (error != DEEP_ERROR)
+ error = SHALLOW_ERROR;
errorstream << "attr value mismatch " << i->first;
}
}
if (!auth.attrs.count(i->first)) {
if (error != CLEAN)
errorstream << ", ";
- error = SHALLOW_ERROR;
+ if (error != DEEP_ERROR)
+ error = SHALLOW_ERROR;
errorstream << "extra attr " << i->first;
}
}