From ed53b1a819345cd9f8f7765219346be9e9be450e Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 24 Oct 2018 21:48:37 +0300 Subject: [PATCH] Better error message on broken database. GitOrigin-RevId: 3f26c55916d5dcdf0b53993d82b61b5fa7ee56ac --- td/telegram/MessageContent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;