From 10e02ac3720ef58246471e4779274ef73a545590 Mon Sep 17 00:00:00 2001 From: Jose Luis Uyuni Date: Fri, 4 Apr 2025 00:44:58 -0400 Subject: [PATCH] Update restclient.php change message error --- restclient.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/restclient.php b/restclient.php index 3756d40..d98845c 100755 --- a/restclient.php +++ b/restclient.php @@ -243,8 +243,7 @@ public function parse_response($response) : void { public function get_response_format() : string { if(!$this->response) - throw new RestClientException( - "A response must exist before it can be decoded."); + throw new RestClientException($this->error); // User-defined format. if(!empty($this->options['format']))