mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 21:34:41 +01:00
Improved an error message (#136)
This commit is contained in:
parent
77923b231d
commit
08c6e8d838
@ -359,7 +359,7 @@ trait TL
|
||||
$constructorData = $this->constructors->find_by_predicate($predicate, $layer);
|
||||
if ($constructorData === false) {
|
||||
\danog\MadelineProto\Logger::log([$object], \danog\MadelineProto\Logger::FATAL_ERROR);
|
||||
throw new Exception('Could not extract type');
|
||||
throw new Exception('Could not extract type "'.$predicate.'"');
|
||||
}
|
||||
|
||||
if ($bare = ($type['type'] != '' && $type['type'][0] === '%')) {
|
||||
|
Loading…
Reference in New Issue
Block a user