mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-30 00:29:46 +08:00
fix(server): convert 4xx status HttpError to UserFriendlyError (#10956)
This commit is contained in:
@@ -2,16 +2,16 @@
|
||||
"ar": 96,
|
||||
"ca": 4,
|
||||
"da": 5,
|
||||
"de": 97,
|
||||
"de": 96,
|
||||
"el-GR": 96,
|
||||
"en": 100,
|
||||
"es-AR": 97,
|
||||
"es-AR": 96,
|
||||
"es-CL": 98,
|
||||
"es": 96,
|
||||
"fa": 96,
|
||||
"fr": 96,
|
||||
"hi": 2,
|
||||
"it-IT": 97,
|
||||
"it-IT": 96,
|
||||
"it": 1,
|
||||
"ja": 96,
|
||||
"ko": 61,
|
||||
|
||||
@@ -7282,6 +7282,12 @@ export function useAFFiNEI18N(): {
|
||||
code: string;
|
||||
message: string;
|
||||
}>): string;
|
||||
/**
|
||||
* `HTTP request error, message: {{message}}`
|
||||
*/
|
||||
["error.HTTP_REQUEST_ERROR"](options: {
|
||||
readonly message: string;
|
||||
}): string;
|
||||
/**
|
||||
* `Query is too long, max length is {{max}}.`
|
||||
*/
|
||||
|
||||
@@ -1813,6 +1813,7 @@
|
||||
"error.NOT_FOUND": "Resource not found.",
|
||||
"error.BAD_REQUEST": "Bad request.",
|
||||
"error.GRAPHQL_BAD_REQUEST": "GraphQL bad request, code: {{code}}, {{message}}",
|
||||
"error.HTTP_REQUEST_ERROR": "HTTP request error, message: {{message}}",
|
||||
"error.QUERY_TOO_LONG": "Query is too long, max length is {{max}}.",
|
||||
"error.VALIDATION_ERROR": "Validation error, errors: {{errors}}",
|
||||
"error.USER_NOT_FOUND": "User not found.",
|
||||
|
||||
Reference in New Issue
Block a user