From 409796d9ddeecacc7b65f5b8858f9e49d30fd46c Mon Sep 17 00:00:00 2001 From: levlam Date: Fri, 22 May 2020 15:59:29 +0300 Subject: [PATCH] Improve error message. GitOrigin-RevId: 3c76a4b84edf78ac41ab2ce88ebda4421faff5b7 --- td/telegram/PhotoSizeSource.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/td/telegram/PhotoSizeSource.hpp b/td/telegram/PhotoSizeSource.hpp index 7cadf4c1..8402f2ef 100644 --- a/td/telegram/PhotoSizeSource.hpp +++ b/td/telegram/PhotoSizeSource.hpp @@ -8,6 +8,7 @@ #include "td/telegram/PhotoSizeSource.h" +#include "td/utils/logging.h" #include "td/utils/tl_helpers.h" namespace td { @@ -69,7 +70,7 @@ void parse(PhotoSizeSource::DialogPhoto &source, ParserT &parser) { switch (source.dialog_id.get_type()) { case DialogType::SecretChat: case DialogType::None: - return parser.set_error("Invalid chat identifier"); + return parser.set_error(PSTRING() << "Invalid chat identifier " << source.dialog_id.get()); default: break; }