Skip to content

Commit 3d6fe2e

Browse files
🚚 Rename constant
1 parent 0798a8d commit 3d6fe2e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

constants/errors.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package constants
22

33
const (
4-
GenericError = "GenericError"
4+
GenericPublishError = "GenericPublishError"
55
)
66

77
var ErrorStrings = map[string]string{
8-
GenericError: "publish error",
8+
GenericPublishError: "publish error",
99
}

publisher/sns/sns.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (p *Publisher) PublishBatch(ctx context.Context, msgs []models.Message) (ma
124124

125125
for _, errEntry := range response.Failed {
126126
if errEntry != nil && errEntry.Id != nil {
127-
errMsg := "publish error"
127+
errMsg := constants.GenericPublishError
128128
if errEntry.Message != nil {
129129
errMsg = *errEntry.Message
130130
}

0 commit comments

Comments
 (0)