Refactor Telegram notification error handling
This commit is contained in:
parent
546bcd0dad
commit
7eb955c95a
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ public function handle(): void
|
||||||
}
|
}
|
||||||
$response = Http::post($url, $payload);
|
$response = Http::post($url, $payload);
|
||||||
if ($response->failed()) {
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue