Improve error message.
GitOrigin-RevId: 3c76a4b84edf78ac41ab2ce88ebda4421faff5b7
This commit is contained in:
parent
fc6738e85b
commit
409796d9dd
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user