From f22c14d1e5c5701c163af46288aeb3521d670702 Mon Sep 17 00:00:00 2001 From: juancruzmartino Date: Wed, 8 Sep 2021 17:21:44 +0200 Subject: [PATCH 1/3] 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 439ecf95d51f02570b26964e1ecfad6ff5b7b674 Mon Sep 17 00:00:00 2001 From: juancruzmartino Date: Wed, 2 Nov 2022 19:35:58 +0100 Subject: [PATCH 2/3] Update composer.json --- composer.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index b782619..676eee3 100644 --- a/composer.json +++ b/composer.json @@ -20,10 +20,10 @@ }, "minimum-stability": "dev", "require": { - "php": "^5.6||^7.0||^8.0", - "illuminate/support": "^5.1||^6.0||^7.0||^8.0" + "php": "^5.6||^7.0||^8.0||^8.1", + "illuminate/support": "^5.1||^6.0||^7.0||^8.0||^9.0" }, "require-dev": { - "phpunit/phpunit": "~4.8||^8.0" + "phpunit/phpunit": "~4.8||^8.0||^9.0" } } From ba357f2e4a8941329ce4c56342a192c6eb659081 Mon Sep 17 00:00:00 2001 From: oleksiitsyk Date: Tue, 31 Oct 2023 14:42:51 +0100 Subject: [PATCH 3/3] 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()))