Improved an error message (#136)

This commit is contained in:
Manuel1510 2017-06-03 10:40:10 +02:00 committed by Daniil Gentili
parent 77923b231d
commit 08c6e8d838

View File

@ -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] === '%')) {