Skip to content

Commit

Permalink
Refactor Telegram notification error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
andrasbacsai committed Nov 22, 2024
1 parent 546bcd0 commit 7eb955c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Jobs/SendMessageToTelegramJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function handle(): void
}
$response = Http::post($url, $payload);
if ($response->failed()) {
throw new \Exception('Telegram notification failed with '.$response->status().' status code.'.$response->body());
throw new \RuntimeException('Telegram notification failed with '.$response->status().' status code.'.$response->body());
}
}
}

0 comments on commit 7eb955c

Please sign in to comment.