Skip to content

Commit

Permalink
Add placeholder for failed test without error
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvg93 committed Dec 18, 2024
1 parent 165e132 commit cd364ab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Helpers/Ookla.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd364ab

Please sign in to comment.