diff --git a/index.php b/index.php index 0da089d..b51adab 100644 --- a/index.php +++ b/index.php @@ -1063,7 +1063,8 @@ HTML; // Check for errors if( curl_errno( $ch ) ) { $timestamp = ( new DateTime() )->format( DATE_RFC3339_EXTENDED ); - file_put_contents( $directories["logs"] . "/{$timestamp}.Error.txt", curl_error( $ch ) ); + $error_message = curl_error( $ch ) . "\ninbox: {$inbox}\nmessage: " . json_encode($message); + file_put_contents( $directories["logs"] . "/{$timestamp}.Error.txt", $error_message ); return false; } curl_close( $ch );