Fix throws in client
This commit is contained in:
parent
e670d725e9
commit
3ea23d6533
@ -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."));
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user