Skip to content

Commit

Permalink
Merge pull request #47 from nyaruka/unmarshal_error
Browse files Browse the repository at this point in the history
Improve error message when unable to unmarshal message from redis
  • Loading branch information
ericnewcomer authored Sep 29, 2017
2 parents 37bbd92 + 24004ce commit e463446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/rapidpro/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func (b *backend) PopNextOutgoingMsg() (courier.Msg, error) {
dbMsg := &DBMsg{}
err = json.Unmarshal([]byte(msgJSON), dbMsg)
if err != nil {
return nil, err
return nil, fmt.Errorf("unable to unmarshal message '%s': %s", msgJSON, err)
}

// populate the channel on our db msg
Expand Down

0 comments on commit e463446

Please sign in to comment.