Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a new error message and correct another one #1006

Merged
merged 2 commits into from
May 16, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 19 additions & 15 deletions frontend/app/utils/errorUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,68 +23,72 @@ export const errorMessages = defineMessages<string | number>({
},
4: {
id: 'errors.4',
defaultMessage: `Invalid comment data.`,
defaultMessage: 'Invalid comment data.',
},
5: {
id: 'errors.5',
defaultMessage: `Comment cannot be found. Please refresh the page and try again.`,
defaultMessage: 'Comment cannot be found. Please refresh the page and try again.',
},
6: {
id: 'errors.6',
defaultMessage: `Site cannot be found. Please refresh the page and try again.`,
defaultMessage: 'Site cannot be found. Please refresh the page and try again.',
},
7: {
id: 'errors.7',
defaultMessage: `User has been blocked.`,
defaultMessage: 'User has been blocked.',
},
8: {
id: 'errors.8',
defaultMessage: `User has been blocked.`,
defaultMessage: `Can't post comments on this page. Comments are read only.`,
},
9: {
id: 'errors.9',
defaultMessage: `Comment changing failed. Please try again a bit later.`,
defaultMessage: 'Comment changing failed. Please try again a bit later.',
},
10: {
id: 'errors.10',
defaultMessage: `It is too late to edit the comment.`,
defaultMessage: 'It is too late to edit the comment.',
},
11: {
id: 'errors.11',
defaultMessage: `Comment already has reply, editing is not possible.`,
defaultMessage: 'Comment already has reply, editing is not possible.',
},
12: {
id: 'errors.12',
defaultMessage: `Cannot save voting result. Please try again a bit later.`,
defaultMessage: 'Cannot save voting result. Please try again a bit later.',
},
13: {
id: 'errors.13',
defaultMessage: `You cannot vote for your own comment.`,
defaultMessage: 'You cannot vote for your own comment.',
},
14: {
id: 'errors.14',
defaultMessage: `You have already voted for the comment.`,
defaultMessage: 'You have already voted for the comment.',
},
15: {
id: 'errors.15',
defaultMessage: `Too many votes for the comment.`,
defaultMessage: 'Too many votes for the comment.',
},
16: {
id: 'errors.16',
defaultMessage: `Min score reached for the comment.`,
defaultMessage: 'Min score reached for the comment.',
},
17: {
id: 'errors.17',
defaultMessage: `Action rejected. Please try again a bit later.`,
defaultMessage: 'Action rejected. Please try again a bit later.',
},
18: {
id: 'errors.18',
defaultMessage: `Requested file cannot be found.`,
defaultMessage: 'Requested file cannot be found.',
},
19: {
id: 'errors.19',
defaultMessage: 'Comment contains restricted words.',
},
20: {
id: 'errors.20',
defaultMessage: 'Posted image not found. Try to upload it again.',
akellbl4 marked this conversation as resolved.
Show resolved Hide resolved
},
401: {
id: 'errors.not-authorized',
defaultMessage: 'Not authorized.',
Expand Down