From 5ee47f3d8903cdd4eead1eb6ee6d343cc2fda450 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 8 Aug 2017 23:25:45 +0200 Subject: [PATCH] Better exceptions --- 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 24df5e21..6b1435a5 100644 --- a/src/danog/MadelineProto/TL/TL.php +++ b/src/danog/MadelineProto/TL/TL.php @@ -349,7 +349,7 @@ trait TL $constructorData = $this->constructors->find_by_predicate($type['type'], $layer); if ($constructorData === false) { - throw new Exception('Predicate was not set!'); + throw new Exception('Predicate (value under _) was not set!'); } $auto = true; $object['_'] = $constructorData['predicate'];