Error fix
This commit is contained in:
parent
3ea23d6533
commit
4cfb66756f
@ -143,8 +143,8 @@ class CommandBusClient implements CommandBusInterface
|
||||
public function execute(string $command, array $context): PromiseInterface
|
||||
{
|
||||
if (!$this->connection) {
|
||||
return new Promise(function (callable $resolve) {
|
||||
$resolve(new \RuntimeException("Not connected to command bus."));
|
||||
return new Promise(function (callable $resolve, callable $canceller) {
|
||||
$canceller("Not connected to command bus.");
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user