Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(github-integration): surface server error text on verify failure

Andrej781274d0af5c
diff --git a/apps/web/src/fetchers/github-integration/verify-github-installation.ts b/apps/web/src/fetchers/github-integration/verify-github-installation.ts
index 52429cd37..4cb8b888d 100644
--- a/apps/web/src/fetchers/github-integration/verify-github-installation.ts
+++ b/apps/web/src/fetchers/github-integration/verify-github-installation.ts
@@ -18,8 +18,8 @@ async function verifyGithubInstallation(
});
if (!response.ok) {
- const error = await response.json();
- throw new Error(error.message || "Request failed");
+ const error = await response.text();
+ throw new Error(error || "Request failed");
}
const result = await response.json();