fix: error msg for 302 errors when creating shared session (#1991)

This commit is contained in:
Salman Mohammed
2025-04-01 17:03:46 -04:00
committed by GitHub
parent 9607126867
commit c4a2673add

View File

@@ -90,6 +90,11 @@ export async function createSharedSession(
});
if (!response.ok) {
if (response.status === 302) {
throw new Error(
`Failed to create shared session. Please check that you are connected to VPN - ${response.status} ${response.statusText}`
);
}
throw new Error(`Failed to create shared session: ${response.status} ${response.statusText}`);
}