chore: Export improvements (#4617)

* wip

* i18n
This commit is contained in:
Tom Moor
2022-12-27 09:51:39 -08:00
committed by GitHub
parent ee37ba9355
commit 1b8dd9399c
17 changed files with 99 additions and 26 deletions

View File

@@ -103,6 +103,14 @@ export function ValidationError(message = "Validation failed") {
});
}
export function IncorrectEditionError(
message = "Functionality not available in this edition"
) {
return httpErrors(402, message, {
id: "incorrect_edition",
});
}
export function EditorUpdateError(
message = "The client editor is out of date and must be reloaded"
) {