From 08c6e8d838b979b2bcc1875ec93e8e1b7d7d1087 Mon Sep 17 00:00:00 2001 From: Manuel1510 Date: Sat, 3 Jun 2017 10:40:10 +0200 Subject: [PATCH] Improved an error message (#136) --- src/danog/MadelineProto/TL/TL.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/danog/MadelineProto/TL/TL.php b/src/danog/MadelineProto/TL/TL.php index 9fc6432c..b8c9cd15 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -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] === '%')) {