Fix throws in client

This commit is contained in:
Chris 2024-03-01 18:30:16 +01:00
parent e670d725e9
commit 3ea23d6533

View File

@ -144,7 +144,7 @@ class CommandBusClient implements CommandBusInterface
{
if (!$this->connection) {
return new Promise(function (callable $resolve) {
throw new \RuntimeException("Not connected to command bus.");
$resolve(new \RuntimeException("Not connected to command bus."));
});
}