refactor(SourceManagement): sort sources by name and improve UI for changing Git source with better error handling

This commit is contained in:
Andras Bacsai committed 2025-04-11 20:25:25 +02:00
1 parent 46fe0fd7c6
commit 4c95dccfb3
3 files changed
+26 -18

No files matched your search

+3
View File
@@ -52,6 +52,9 @@ function generateGithubToken(GithubApp $source, string $type)
if (! $response->successful()) {
$error = data_get($response->json(), 'message', 'no error message found');
if ($error === 'Not Found') {
$error = 'Repository not found. Is it moved or deleted?';
}
throw new RuntimeException("Failed to get installation token for {$source->name} with error: ".$error);
}