Skip to content

Commit 5bedb30

Browse files
committed
Update onLine error message
1 parent 1f94526 commit 5bedb30

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/stack-shared/src/interface/clientInterface.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ import { deindent } from '../utils/strings';
1515
import { ContactChannelsCrud } from './crud/contact-channels';
1616
import { CurrentUserCrud } from './crud/current-user';
1717
import { ConnectedAccountAccessTokenCrud } from './crud/oauth';
18+
import { ProjectPermissionsCrud } from './crud/project-permissions';
1819
import { InternalProjectsCrud, ProjectsCrud } from './crud/projects';
1920
import { SessionsCrud } from './crud/sessions';
2021
import { TeamInvitationCrud } from './crud/team-invitation';
2122
import { TeamMemberProfilesCrud } from './crud/team-member-profiles';
22-
import { ProjectPermissionsCrud } from './crud/project-permissions';
2323
import { TeamPermissionsCrud } from './crud/team-permissions';
2424
import { TeamsCrud } from './crud/teams';
2525

@@ -120,7 +120,7 @@ export class StackClientInterface {
120120
// try to diagnose the error for the user
121121
if (retriedResult.status === "error") {
122122
if (globalVar.navigator && !globalVar.navigator.onLine) {
123-
throw new Error("Failed to send Stack network request. It seems like you are offline. (window.navigator.onLine is falsy)", { cause: retriedResult.error });
123+
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 });
124124
}
125125
throw await this._createNetworkError(retriedResult.error, session, requestType);
126126
}

0 commit comments

Comments
 (0)