From 843cd90ee568cfb158fd28f079fb7a9402ef76d9 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 31 Jan 2024 13:47:16 +0100 Subject: [PATCH] Update exception type in generate_github_installation_token function --- bootstrap/helpers/github.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap/helpers/github.php b/bootstrap/helpers/github.php index 11cc5a3f8..16633168f 100644 --- a/bootstrap/helpers/github.php +++ b/bootstrap/helpers/github.php @@ -29,7 +29,7 @@ function generate_github_installation_token(GithubApp $source) 'Accept' => 'application/vnd.github.machine-man-preview+json' ])->post("{$source->api_url}/app/installations/{$source->installation_id}/access_tokens"); if ($token->failed()) { - throw new \Exception("Failed to get access token for " . $source->name . " with error: " . $token->json()['message']); + throw new RuntimeException("Failed to get access token for " . $source->name . " with error: " . $token->json()['message']); } return $token->json()['token']; }