From 4d5f7bed7d12f06b002ecdb02d84a3315a93d7f7 Mon Sep 17 00:00:00 2001 From: Bernhard B Date: Sun, 17 Jan 2021 09:49:12 +0100 Subject: [PATCH] improved error handling --- src/api/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/api.go b/src/api/api.go index 7abde4b..47b00a6 100644 --- a/src/api/api.go +++ b/src/api/api.go @@ -181,7 +181,7 @@ func send(c *gin.Context, attachmentTmpDir string, signalCliConfig string, numbe if err != nil { cleanupTmpFiles(attachmentTmpPaths) if strings.Contains(err.Error(), signalCliV2GroupError) { - c.JSON(400, Error{Msg: "Cannot create group - please first update your profile."}) + c.JSON(400, Error{Msg: "Cannot send message to group - please first update your profile."}) } else { c.JSON(400, Error{Msg: err.Error()}) }