Skip to content

Commit

Permalink
Merge pull request #194 from thethunderturner/main
Browse files Browse the repository at this point in the history
Fixed output of Ping on null
  • Loading branch information
freekmurze authored Sep 14, 2023
2 parents 6c1fda2 + 3f05ce5 commit 1f89cde
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Checks/Checks/PingCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ public function failureMessage(string $failureMessage): self
public function run(): Result
{
if (is_null($this->url)) {
throw InvalidCheck::urlNotSet();
return Result::make()
->failed()
->shortSummary(InvalidCheck::urlNotSet()->getMessage());
}

try {
Expand Down

0 comments on commit 1f89cde

Please sign in to comment.