diff --git a/Requester/XmlRpcRequester.php b/Requester/XmlRpcRequester.php index 86fb97e..7cde5fb 100644 --- a/Requester/XmlRpcRequester.php +++ b/Requester/XmlRpcRequester.php @@ -80,6 +80,10 @@ protected function send(string $method, $params): mixed { $response = $this->xmlRpcClient->send($this::buildRequest($method, $this->flatten($params))); + if (!empty($response->faultString())) { + throw new \UnexpectedValueException('Error while sending informations to universign : ' . $response->faultString()); + } + return $response->value(); }