Skip to content

Commit 629160b

Browse files
committed
error message postmortem fix
1 parent 1e05ab8 commit 629160b

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

src/lib/shared/constants/constants.ts

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,16 @@ export const getBaseUrl = (env: string): string => {
2121
}
2222

2323
export const defaultErrorDescription =
24-
"Något gick fel. Du kan kontakta oss om detta fortsätter.";
25-
export const defaultErrorTitle = "Något gick fel...";
24+
// "Något gick fel. Du kan kontakta oss om detta fortsätter.";
25+
"Tjänsten har tyvärr lagts ned."
26+
export const defaultErrorTitle =
27+
// "Något gick fel...";
28+
"Denna tjänsten är ej i bruk längre..."
2629
export const defaultErrorInfo: App.Error = {
2730
message: defaultErrorTitle,
2831
description:
29-
"Ett oväntat fel uppstod. Du kan kontakta oss om detta fortsätter.",
32+
// "Ett oväntat fel uppstod. Du kan kontakta oss om detta fortsätter.",
33+
"Det går inte att göra detta längre, då tjänsten ej är i bruk."
3034
};
3135

3236
export const getDefaultErrorInfo = (
@@ -59,8 +63,8 @@ export const getFailFormMessage = (
5963
}
6064
): Message => ({
6165
variant: options?.variant ?? "destructive",
62-
title: options?.title ?? "Något gick fel",
63-
description: options?.description ?? "Du kan kontakta oss om detta fortsätter.",
66+
title: options?.title ?? "Denna tjänst är inte längre i bruk", //"Något gick fel",
67+
description: options?.description ?? "Detta går tyvärr inte att göra längre",//"Du kan kontakta oss om detta fortsätter.",
6468
trackingId: options?.trackingId ?? undefined,
6569
id: options?.messageId ?? MessageId.Unknown,
6670
data: options?.data ?? undefined,

0 commit comments

Comments
 (0)