diff --git a/src/conduit/ConduitFuture.php b/src/conduit/ConduitFuture.php index 351d2d11..5966f42e 100644 --- a/src/conduit/ConduitFuture.php +++ b/src/conduit/ConduitFuture.php @@ -62,9 +62,14 @@ final class ConduitFuture extends FutureProxy { } if ($data['error_code']) { + $message = pht( + '<%s> %s', + $this->conduitMethod, + $data['error_info']); + throw new ConduitClientException( $data['error_code'], - $data['error_info']); + $message); } $result = $data['result'];