Skip to content

Commit

Permalink
Improve error msg on unmarshalling
Browse files Browse the repository at this point in the history
Signed-off-by: Davit Yeghshatyan <davo@uber.com>
  • Loading branch information
Davit Yeghshatyan committed Jul 23, 2018
1 parent 79dc55f commit 1c101c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ingester/app/processor/span_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func NewSpanProcessor(writer spanstore.Writer, unmarshaller kafka.Unmarshaller)
func (s spanProcessor) Process(message Message) error {
mSpan, err := s.unmarshaller.Unmarshal(message.Value())
if err != nil {
return errors.Wrap(err, "cannot read message")
return errors.Wrap(err, "cannot unmarshall byte array into span")
}
return s.writer.WriteSpan(mSpan)
}

0 comments on commit 1c101c2

Please sign in to comment.