Better error message on broken database.

GitOrigin-RevId: 3f26c55916d5dcdf0b53993d82b61b5fa7ee56ac
This commit is contained in:
levlam 2018-10-24 21:48:37 +03:00
parent 7b0d468aeb
commit ed53b1a819

View File

@ -1266,7 +1266,7 @@ static void parse(unique_ptr<MessageContent> &content, ParserT &parser) {
break;
}
default:
UNREACHABLE();
LOG(FATAL) << "Have unknown message content type " << static_cast<int32>(content_type);
}
if (is_bad) {
LOG(ERROR) << "Load a message with an invalid content of type " << content_type;