aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-11-19 09:30:46 -0500
committerDrew DeVault <sir@cmpwn.com>2020-11-19 09:30:46 -0500
commit5087e4b327732ba826bf6c839c06dcca1f8314f7 (patch)
treeed5aad3fd0b9c030fd857ae74d3a567dd378ab9c
parent297afc5ce699823cca171aa0d44280e8b5e75b26 (diff)
downloadalps-5087e4b327732ba826bf6c839c06dcca1f8314f7.tar.gz
alps-5087e4b327732ba826bf6c839c06dcca1f8314f7.zip
Improve "attachments exceed max size" error message
-rw-r--r--plugins/base/routes.go2
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()