From d9c59b742c64ee5a47171aef48027e6548e31472 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 21 Jun 2026 13:10:56 +0200 Subject: [PATCH] Better error message --- test/phpunit/WebservicesInvoicesTest.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/phpunit/WebservicesInvoicesTest.php b/test/phpunit/WebservicesInvoicesTest.php index 74f219b8589..73ab4cf2efe 100644 --- a/test/phpunit/WebservicesInvoicesTest.php +++ b/test/phpunit/WebservicesInvoicesTest.php @@ -218,7 +218,10 @@ class WebservicesInvoicesTest extends CommonClassTest try { $result = $this->soapclient->call($WS_METHOD, $parameters, $this->ns, ''); } catch (SoapFault $exception) { - echo $exception; + echo $exception->getMessage(); + $result = 0; + } catch (Exception $e) { + echo $e->getMessage(); $result = 0; } if (! $result || !empty($result['faultstring'])) {