Преглед изворни кода

Improve "attachments exceed max size" error message

master
Drew DeVault пре 3 година
родитељ
комит
5087e4b327
1 измењених фајлова са 1 додато и 1 уклоњено
  1. +1
    -1
      plugins/base/routes.go

+ 1
- 1
plugins/base/routes.go Прегледај датотеку

@@ -695,7 +695,7 @@ func handleComposeAttachment(ctx *alps.Context) error {
if err == alps.ErrAttachmentCacheSize {
form.RemoveAll()
return ctx.JSON(http.StatusBadRequest, map[string]string{
"error": "The total size of unset attachments on your session exceeds the maximum file size. Remove some attachments and try again.",
"error": "Your attachments exceed the maximum file size. Remove some and try again.",
})
} else if err != nil {
form.RemoveAll()


Loading…
Откажи
Сачувај