diff --git a/app/Helpers/Ookla.php b/app/Helpers/Ookla.php index 0773025bc..44b63fb5d 100644 --- a/app/Helpers/Ookla.php +++ b/app/Helpers/Ookla.php @@ -20,7 +20,8 @@ public static function getErrorMessage(ProcessFailedException $exception): strin return $decoded['message']; } - return ''; // If it's not valid JSON or doesn't contain "message", return an empty string + // Placeholder for invalid JSON or missing "message" + return 'An unexpected error occurred while running the Ookla CLI.'; }, $messages); // Filter out empty messages and concatenate