diff options
author | Drew DeVault <sir@cmpwn.com> | 2020-11-19 09:30:46 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2020-11-19 09:30:46 -0500 |
commit | 5087e4b327732ba826bf6c839c06dcca1f8314f7 (patch) | |
tree | ed5aad3fd0b9c030fd857ae74d3a567dd378ab9c | |
parent | 297afc5ce699823cca171aa0d44280e8b5e75b26 (diff) | |
download | alps-5087e4b327732ba826bf6c839c06dcca1f8314f7.tar.gz alps-5087e4b327732ba826bf6c839c06dcca1f8314f7.zip |
Improve "attachments exceed max size" error message
-rw-r--r-- | plugins/base/routes.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/base/routes.go b/plugins/base/routes.go index 3f379dd..8698a3a 100644 --- a/plugins/base/routes.go +++ b/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() |