summaryrefslogtreecommitdiff
path: root/packages/frontend/src/InstanceRoutes.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'packages/frontend/src/InstanceRoutes.tsx')
-rw-r--r--packages/frontend/src/InstanceRoutes.tsx17
1 files changed, 8 insertions, 9 deletions
diff --git a/packages/frontend/src/InstanceRoutes.tsx b/packages/frontend/src/InstanceRoutes.tsx
index a7e4227..5c04275 100644
--- a/packages/frontend/src/InstanceRoutes.tsx
+++ b/packages/frontend/src/InstanceRoutes.tsx
@@ -112,8 +112,8 @@ export function InstanceRoutes({ id, admin }: Props): VNode {
const ServerErrorRedirectTo = (to: InstancePaths | AdminPaths) => (error: HttpError) => {
setGlobalNotification({
- message: i18n`HTTP status #${error.status}: Server reported a problem`,
- description: i18n`Got message: "${error.message}" from: ${error.info?.url}`,
+ message: i18n`The backend reported a problem: HTTP status #${error.status}`,
+ description: i18n`Diagnostic from ${error.info?.url} is "${error.message}"`,
type: 'ERROR',
to
})
@@ -121,7 +121,7 @@ export function InstanceRoutes({ id, admin }: Props): VNode {
}
const LoginPageAccessDenied = () => <Fragment>
- <NotificationCard notification={{ message: i18n`Access denied`, description: i18n`Check your token is valid`, type: 'ERROR', }} />
+ <NotificationCard notification={{ message: i18n`Access denied`, description: i18n`The access token provided is invalid.`, type: 'ERROR', }} />
<LoginPage onConfirm={updateLoginStatus} />
</Fragment>
@@ -130,8 +130,8 @@ export function InstanceRoutes({ id, admin }: Props): VNode {
if (admin && id === 'default') {
return <Fragment>
<NotificationCard notification={{
- message: i18n`No default instance`,
- description: i18n`in order to use merchant backoffice, you should create the default instance`,
+ message: i18n`No 'default' instance configured yet.`,
+ description: i18n`Create a 'default' instance to begin using the merchant backoffice.`,
type: 'INFO'
}} />
<InstanceCreatePage forceId="default" onConfirm={() => {
@@ -314,8 +314,8 @@ function AdminInstanceUpdatePage({ id, ...rest }: { id: string } & InstanceUpdat
onLoadError={(error: HttpError) => {
return <Fragment>
<NotificationCard notification={{
- message: i18n`Server reported a problem: HTTP status #${error.status}`,
- description: i18n`Got message: ${error.message} from: ${error.info?.url}`,
+ message: i18n`The backend reported a problem: HTTP status #${error.status}`,
+ description: i18n`Diagnostic from ${error.info?.url} is "${error.message}"`,
type: 'ERROR'
}} />
<LoginPage onConfirm={updateLoginStatus} />
@@ -326,7 +326,7 @@ function AdminInstanceUpdatePage({ id, ...rest }: { id: string } & InstanceUpdat
return <Fragment>
<NotificationCard notification={{
message: i18n`Access denied`,
- description: i18n`Check your token is valid`,
+ description: i18n`The access token provided is invalid`,
type: 'ERROR',
}} />
<LoginPage onConfirm={updateLoginStatus} />
@@ -336,4 +336,3 @@ function AdminInstanceUpdatePage({ id, ...rest }: { id: string } & InstanceUpdat
/>
</InstanceContextProvider>
}
-