mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
Update onLine error message
This commit is contained in:
parent
1f94526867
commit
5bedb30201
@ -15,11 +15,11 @@ import { deindent } from '../utils/strings';
|
||||
import { ContactChannelsCrud } from './crud/contact-channels';
|
||||
import { CurrentUserCrud } from './crud/current-user';
|
||||
import { ConnectedAccountAccessTokenCrud } from './crud/oauth';
|
||||
import { ProjectPermissionsCrud } from './crud/project-permissions';
|
||||
import { InternalProjectsCrud, ProjectsCrud } from './crud/projects';
|
||||
import { SessionsCrud } from './crud/sessions';
|
||||
import { TeamInvitationCrud } from './crud/team-invitation';
|
||||
import { TeamMemberProfilesCrud } from './crud/team-member-profiles';
|
||||
import { ProjectPermissionsCrud } from './crud/project-permissions';
|
||||
import { TeamPermissionsCrud } from './crud/team-permissions';
|
||||
import { TeamsCrud } from './crud/teams';
|
||||
|
||||
@ -120,7 +120,7 @@ export class StackClientInterface {
|
||||
// try to diagnose the error for the user
|
||||
if (retriedResult.status === "error") {
|
||||
if (globalVar.navigator && !globalVar.navigator.onLine) {
|
||||
throw new Error("Failed to send Stack network request. It seems like you are offline. (window.navigator.onLine is falsy)", { cause: retriedResult.error });
|
||||
throw new Error("Failed to send Stack network request. It seems like you are offline, please check your internet connection and try again. This is not an error with Stack Auth. (window.navigator.onLine is falsy)", { cause: retriedResult.error });
|
||||
}
|
||||
throw await this._createNetworkError(retriedResult.error, session, requestType);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user