From cd364ab46973846fd089783ff13b5fff66c70e51 Mon Sep 17 00:00:00 2001 From: Sven van Ginkel Date: Wed, 18 Dec 2024 13:33:27 +0100 Subject: [PATCH] Add placeholder for failed test without error --- app/Helpers/Ookla.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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