Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

surface error message

Thiago Araujo da Silvaecbfe10ff80f
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubAppSelector.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubAppSelector.tsx
index 8bc6309daa..8507889280 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubAppSelector.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubAppSelector.tsx
@@ -125,7 +125,9 @@ export const GitHubAppSelector = ({
} catch (err) {
createNotification({
type: "error",
- text: err instanceof Error ? err.message : "Failed to delete GitHub App"
+ text:
+ (err as { response?: { data?: { message?: string } } })?.response?.data?.message ??
+ (err instanceof Error ? err.message : "Failed to delete GitHub App")
});
}
};
diff --git a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubConnectionForm.tsx b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubConnectionForm.tsx
index 3780ddaecb..269195b3c1 100644
--- a/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubConnectionForm.tsx
+++ b/frontend/src/pages/organization/AppConnections/AppConnectionsPage/components/AppConnectionForm/GitHubConnectionForm.tsx
@@ -293,7 +293,9 @@ export const GitHubConnectionForm = ({ appConnection, projectId, onSubmit }: Pro
setIsRedirecting(false);
createNotification({
type: "error",
- text: err instanceof Error ? err.message : "Failed to start GitHub App creation."
+ text:
+ (err as { response?: { data?: { message?: string } } })?.response?.data?.message ??
+ (err instanceof Error ? err.message : "Failed to start GitHub App creation.")
});
return false;
}