aboutsummaryrefslogtreecommitdiffstats
path: root/gsxlib.php
diff options
context:
space:
mode:
Diffstat (limited to 'gsxlib.php')
-rw-r--r--gsxlib.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/gsxlib.php b/gsxlib.php
index 60a3fc0..c51639c 100644
--- a/gsxlib.php
+++ b/gsxlib.php
@@ -95,7 +95,13 @@ class GsxLib
'unitDetail' => array('serialNumber' => $serialNumber)
));
- $result = $this->client->WarrantyStatus($a);
+ try {
+ $result = $this->client->WarrantyStatus($a);
+ } catch (SoapFault $e) {
+ trigger_error($e->getMessage());
+ return FALSE;
+ }
+
return $result->WarrantyStatusResponse->warrantyDetailInfo;
}