diff --git a/td/telegram/MessageContent.cpp b/td/telegram/MessageContent.cpp index 40c62b153..485295142 100644 --- a/td/telegram/MessageContent.cpp +++ b/td/telegram/MessageContent.cpp @@ -1266,7 +1266,7 @@ static void parse(unique_ptr &content, ParserT &parser) { break; } default: - UNREACHABLE(); + LOG(FATAL) << "Have unknown message content type " << static_cast(content_type); } if (is_bad) { LOG(ERROR) << "Load a message with an invalid content of type " << content_type;