From c331983b74ed5f166fc5bb09db8a5bfcca365c78 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 18 Jul 2023 19:21:13 +0200 Subject: [PATCH] Add logging --- docs | 2 +- src/MTProtoTools/UpdateHandler.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs b/docs index ceaadaca9..2cfccd0d5 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit ceaadaca96b69220bc631c2e0f9c0f11db206ab2 +Subproject commit 2cfccd0d5d83a44cf30750a27ad6f9f511ecbb0b diff --git a/src/MTProtoTools/UpdateHandler.php b/src/MTProtoTools/UpdateHandler.php index 0d0df742b..cccf772f4 100644 --- a/src/MTProtoTools/UpdateHandler.php +++ b/src/MTProtoTools/UpdateHandler.php @@ -489,7 +489,8 @@ trait UpdateHandler } } if ($result === null) { - throw new Exception('Could not find any message in the updates!'); + $updates = json_encode($updates); + throw new Exception("Could not find any message in $updates!"); } return $result; }