diff --git a/composer.json b/composer.json index 18e3c97..676eee3 100644 --- a/composer.json +++ b/composer.json @@ -20,10 +20,10 @@ }, "minimum-stability": "dev", "require": { - "php": "^5.6||^7.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" } } 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()))