diff --git a/src/CommandBusClient.php b/src/CommandBusClient.php index 806e79e..c8d3c98 100644 --- a/src/CommandBusClient.php +++ b/src/CommandBusClient.php @@ -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.")); }); }