feat: editor write path

This commit is contained in:
Florian Sylvain committed 2026-11-02 03:24:30 +01:00
1 parent d9158025d4
commit a0b3c58c52
88 files changed
+5738 -263

No files matched your search

@@ -28,6 +28,15 @@ type failureReason struct {
var failureReasons = []failureReason{
{article.ErrInvalidTitle, "The title must be between 3 and 200 characters."},
{article.ErrSlugTaken, "That slug is already used by another article on this site."},
{article.ErrRevisionConflict, "The article was changed by someone else since it was opened."},
{article.ErrLanguageUnavailable, "That language cannot be used for this article."},
{article.ErrLanguageExists, "A version in that language already exists."},
{article.ErrLanguageNotEnabled, "A language of the article is not enabled on the site."},
{article.ErrLanguageDisabled, "That language is disabled on the site."},
{article.ErrSourceUnavailable, "The chosen source version cannot be used."},
{article.ErrSourceOtherStory, "The chosen source version belongs to another article."},
{article.ErrStoryMoveRequired, "The article has other versions, so the whole story must be moved."},
{article.ErrSlugConflict, "An address of the article is already used on the destination site."},
{image.ErrImageTypeNotAllowed, "The file must be a PNG, JPEG, WEBP or SVG image."},
{image.ErrImageTooLarge, "The file is too large to upload."},
{image.ErrImageUnreadable, "The image could not be read."},