misc: improve error page

This commit is contained in:
Xylight committed 2024-09-11 20:49:31 -07:00
1 parent dbb6f16fde
commit e88b19ac0b
3 files changed
+44 -14

No files matched your search

+3 -1
View File
@@ -854,7 +854,9 @@
"captcha_failed": "Incorrect CAPTCHA answer.",
"cant_block_local_instance": "You can't block the instance you are actively using.",
"invalid_vote_value": "You can't commit voter fraud on Lemmy posts, sorry.",
"language_not_allowed": "That language isn't allowed in this community. Unset it to use the community's default."
"language_not_allowed": "That language isn't allowed in this community. Unset it to use the community's default.",
"couldnt_find_person": "That user doesn't exist.",
"couldnt_find_community": "That community doesn't exist."
},
"aria": {
"pagination": {
+2
View File
@@ -6,6 +6,8 @@ export function errorMessage(error: any, instance?: string): string {
error = JSON.parse(error?.body?.message).error
} else if (error?.message) {
error = error?.message
} else if (error?.error && typeof error?.error === 'string') {
error = error.error
}
if (!error) throw error