mirror of
https://github.com/aljazceru/goose.git
synced 2026-01-02 05:54:23 +01:00
fix: error msg for 302 errors when creating shared session (#1991)
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user