Skip to content

Commit 19669e3

Browse files
authored
make reload message more professional (#468)
<!-- Describe your PR here. --> <!-- The following applies to third-party contributors. Convex employees and contractors can delete or ignore. --> ---- By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent 2884211 commit 19669e3

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

app/lib/stores/startup/useContainerSetup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function useNewChatContainerSetup() {
3131
await waitForBootStepCompleted(ContainerBootState.STARTING);
3232
await setupContainer(convex, { snapshotUrl: TEMPLATE_URL, allowNpmInstallFailure: false });
3333
} catch (error: any) {
34-
toast.error('Failed to setup Chef environment. Try reloading the page?');
34+
toast.error('Failed to setup Chef environment. Try reloading the page.');
3535
setContainerBootState(ContainerBootState.ERROR, error);
3636
}
3737
};
@@ -59,7 +59,7 @@ export function useExistingChatContainerSetup(loadedChatId: string | undefined)
5959
}
6060
await setupContainer(convex, { snapshotUrl, allowNpmInstallFailure: true });
6161
} catch (error: any) {
62-
toast.error('Failed to setup Chef environment. Try reloading the page?');
62+
toast.error('Failed to setup Chef environment. Try reloading the page.');
6363
setContainerBootState(ContainerBootState.ERROR, error);
6464
}
6565
};

app/lib/stores/startup/useInitialMessages.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function useInitialMessages(chatId: string):
9797
});
9898
description.set(chatInfo.description);
9999
} catch (error) {
100-
toast.error('Failed to load chat messages from Convex. Reload the page?');
100+
toast.error('Failed to load chat messages from Convex. Try reloading the page.');
101101
console.error('Error fetching initial messages:', error);
102102
}
103103
};

app/lib/stores/startup/useTeamsInitializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ async function fetchTeams(convex: ConvexReactClient) {
3535
teams = await response.json();
3636
} catch (error) {
3737
console.error('Error fetching teams:', error);
38-
toast.error('Failed to load user. Try logging in at dashboard.convex.dev?');
38+
toast.error('Failed to load user. Try logging in at https://dashboard.convex.dev.');
3939
return;
4040
}
4141
convexTeamsStore.set(teams);

0 commit comments

Comments
 (0)