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()); } } }