From f22c14d1e5c5701c163af46288aeb3521d670702 Mon Sep 17 00:00:00 2001 From: juancruzmartino Date: Wed, 8 Sep 2021 17:21:44 +0200 Subject: [PATCH 1/2] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 18e3c97..b782619 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ }, "minimum-stability": "dev", "require": { - "php": "^5.6||^7.0", + "php": "^5.6||^7.0||^8.0", "illuminate/support": "^5.1||^6.0||^7.0||^8.0" }, "require-dev": { From 234c78a28eeb64939ccd99782b516299ed308b85 Mon Sep 17 00:00:00 2001 From: oleksii Date: Tue, 31 Oct 2023 15:00:22 +0100 Subject: [PATCH 2/2] adjust the exception message convert --- src/Odoo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Odoo.php b/src/Odoo.php index bf424da..f1d9cf9 100644 --- a/src/Odoo.php +++ b/src/Odoo.php @@ -708,7 +708,7 @@ private function buildParams($params) private function makeResponse($result, $key = null, $cast = null) { if (array_key_exists('faultCode', $result->toArray())) { - throw new OdooException($result['faultString']); + throw new OdooException($result['faultCode'] . "\r\n" . $result['faultString']); } if (!is_null($key) && array_key_exists($key, $result->toArray()))