From ac553489f5de618fd0c54b04bf32cc02b56297a2 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Thu, 10 Jul 2025 23:56:52 +0200 Subject: [PATCH] fix: better error if push server didn't set version in redis Signed-off-by: Robin Appelman --- lib/SelfTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/SelfTest.php b/lib/SelfTest.php index b45cc01d..971be765 100644 --- a/lib/SelfTest.php +++ b/lib/SelfTest.php @@ -187,6 +187,9 @@ public function test(string $server, OutputInterface $output, bool $ignoreProxyE } usleep(10 * 1000); $binaryVersion = $this->queue->getConnection()->get('notify_push_version'); + if (!$binaryVersion) { + throw new \Exception('push server didn\'t set expected redis key'); + } } catch (\Exception $e) { $msg = $e->getMessage(); $output->writeln("🗴 failed to get binary version: $msg");