Skip to content

Commit

Permalink
[ingest][verify] fix typo in error message
Browse files Browse the repository at this point in the history
  • Loading branch information
jbygdell committed Oct 3, 2023
1 parent e91a14a commit 8c0f632
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions sda/cmd/ingest/ingest.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func main() {

body, _ := json.Marshal(infoErrorMessage)
if err := mq.SendMessage(delivered.CorrelationId, conf.Broker.Exchange, "error", body); err != nil {
log.Errorf("failed so publish message, reason: (%v)", err.Error())
log.Errorf("failed to publish message, reason: (%v)", err.Error())
}
if err := delivered.Ack(false); err != nil {
log.Errorf("Failed acking canceled work, reason: (%v)", err.Error())
Expand Down Expand Up @@ -173,7 +173,7 @@ func main() {
}
body, _ := json.Marshal(fileError)
if err := mq.SendMessage(delivered.CorrelationId, conf.Broker.Exchange, "error", body); err != nil {
log.Errorf("failed so publish message, reason: (%v)", err.Error())
log.Errorf("failed to publish message, reason: (%v)", err.Error())
}
if err = delivered.Ack(false); err != nil {
log.Errorf("Failed to Ack message, reason: (%v)", err.Error())
Expand All @@ -199,7 +199,7 @@ func main() {
}
body, _ := json.Marshal(fileError)
if err = mq.SendMessage(delivered.CorrelationId, conf.Broker.Exchange, "error", body); err != nil {
log.Errorf("failed so publish message, reason: (%v)", err.Error())
log.Errorf("failed to publish message, reason: (%v)", err.Error())
}

// Restart on new message
Expand Down Expand Up @@ -278,7 +278,7 @@ func main() {
}
body, _ := json.Marshal(fileError)
if err := mq.SendMessage(delivered.CorrelationId, conf.Broker.Exchange, "error", body); err != nil {
log.Errorf("failed so publish message, reason: (%v)", err.Error())
log.Errorf("failed to publish message, reason: (%v)", err.Error())
}

continue mainWorkLoop
Expand Down
8 changes: 4 additions & 4 deletions sda/cmd/verify/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func main() {

body, _ := json.Marshal(infoErrorMessage)
if err := mq.SendMessage(delivered.CorrelationId, conf.Broker.Exchange, "error", body); err != nil {
log.Errorf("failed so publish message, reason: %v", err.Error())
log.Errorf("failed to publish message, reason: %v", err.Error())
}
if err := delivered.Ack(false); err != nil {
log.Errorf("Failed to Ack message, reason: %v", err.Error())
Expand Down Expand Up @@ -113,7 +113,7 @@ func main() {

body, _ := json.Marshal(infoErrorMessage)
if err := mq.SendMessage(delivered.CorrelationId, conf.Broker.Exchange, "error", body); err != nil {
log.Errorf("failed so publish message, reason: %v", err.Error())
log.Errorf("failed to publish message, reason: %v", err.Error())
}

if err := delivered.Ack(false); err != nil {
Expand Down Expand Up @@ -151,7 +151,7 @@ func main() {

// Send the message to an error queue so it can be analyzed.
if err := mq.SendMessage(delivered.CorrelationId, conf.Broker.Exchange, "error", body); err != nil {
log.Errorf("failed so publish message, reason: %v", err.Error())
log.Errorf("failed to publish message, reason: %v", err.Error())
}

continue
Expand Down Expand Up @@ -257,7 +257,7 @@ func main() {

body, _ := json.Marshal(infoErrorMessage)
if err := mq.SendMessage(delivered.CorrelationId, conf.Broker.Exchange, "error", body); err != nil {
log.Errorf("failed so publish message, reason: %v", err.Error())
log.Errorf("failed to publish message, reason: %v", err.Error())
}

if err := delivered.Ack(false); err != nil {
Expand Down

0 comments on commit 8c0f632

Please sign in to comment.