Skip to content

Commit f66ef2d

Browse files
authored
Merge pull request #628 from nextcloud/push-version-check
fix: better error if push server didn't set version in redis
2 parents cb6ed98 + ac55348 commit f66ef2d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/SelfTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,9 @@ public function test(string $server, OutputInterface $output, bool $ignoreProxyE
187187
}
188188
usleep(10 * 1000);
189189
$binaryVersion = $this->queue->getConnection()->get('notify_push_version');
190+
if (!$binaryVersion) {
191+
throw new \Exception('push server didn\'t set expected redis key');
192+
}
190193
} catch (\Exception $e) {
191194
$msg = $e->getMessage();
192195
$output->writeln("<error>🗴 failed to get binary version: $msg</error>");

0 commit comments

Comments
 (0)