From d13730280618463bcc6f3e24fa5babd398a00152 Mon Sep 17 00:00:00 2001 From: phl0 Date: Thu, 16 May 2024 08:33:14 +0200 Subject: [PATCH] Show error message if LoTW upload fails --- application/controllers/Lotw.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index 075910ec6..0a832827d 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -314,6 +314,7 @@ class Lotw extends CI_Controller { ); curl_setopt($ch, CURLOPT_POSTFIELDS, $postFields); + curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 30); //Execute the request $result = curl_exec($ch); @@ -321,7 +322,7 @@ class Lotw extends CI_Controller { //If an error occured, throw an exception //with the error message. if(curl_errno($ch)){ - throw new Exception(curl_error($ch)); + echo $station_profile->station_callsign." (".$station_profile->station_profile_name.") Upload Failed"."
"; } $pos = strpos($result, "");