Skip to content

Commit c37f0bd

Browse files
authored
[Improvement] Add placeholder for failed test without message field (alexjustesen#1940)
1 parent 5b7ba57 commit c37f0bd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/Helpers/Ookla.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public static function getErrorMessage(ProcessFailedException $exception): strin
2020
return $decoded['message'];
2121
}
2222

23-
return ''; // If it's not valid JSON or doesn't contain "message", return an empty string
23+
// Placeholder for invalid JSON or missing "message"
24+
return 'An unexpected error occurred while running the Ookla CLI.';
2425
}, $messages);
2526

2627
// Filter out empty messages and concatenate

0 commit comments

Comments
 (0)