From 1382f5e6f3de847922fdfa16500d2f35af74d95b Mon Sep 17 00:00:00 2001 From: kartubi Date: Wed, 23 Jul 2025 10:15:10 +0700 Subject: [PATCH] Improve exception handling in LogRequestsToDisk --- src/Diagnostics/LogRequestsToDisk.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Diagnostics/LogRequestsToDisk.php b/src/Diagnostics/LogRequestsToDisk.php index 4100ecd8..3e27af25 100644 --- a/src/Diagnostics/LogRequestsToDisk.php +++ b/src/Diagnostics/LogRequestsToDisk.php @@ -114,7 +114,7 @@ public function LogPlatformRequests($xml, $url, $headers, $isRequest) ($isRequest?"REQUEST":"RESPONSE")." BODY\n=============\n".$xml."\n\n", FILE_APPEND); } catch (\Exception $e) { - throw new IdsException("Exception during LogPlatformRequests."); + throw new IdsException("Exception during LogPlatformRequests: " . $e->getMessage(), $e->getCode()); } } }