From a838f1a1dab72b894ec0486684ad44764db58495 Mon Sep 17 00:00:00 2001 From: Dennis Date: Fri, 16 Feb 2024 14:57:00 +0100 Subject: [PATCH] fx --- app/Services/Ploi/Resources/Site.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Services/Ploi/Resources/Site.php b/app/Services/Ploi/Resources/Site.php index d6c8671..81b8dc2 100644 --- a/app/Services/Ploi/Resources/Site.php +++ b/app/Services/Ploi/Resources/Site.php @@ -68,7 +68,8 @@ class Site extends Resource string $projectRoot = '/', string $systemUser = 'ploi', string $systemUserPassword = null - ): stdClass { + ): stdClass + { // Remove the id $this->setId(null); @@ -104,6 +105,11 @@ class Site extends Resource // TODO: Debugging purposes if (!$response->getJson() || !isset($response->getJson()->data)) { + try { + info(json_encode($response)); + } catch (\Throwable $exception) { + + } throw new Exception($response->getJson()->error ?? 'Unknown error has occured'); }