From 94479c77224db6914bfbe1cfb401fe7d786b17f2 Mon Sep 17 00:00:00 2001 From: Davit Yeghshatyan Date: Mon, 23 Jul 2018 14:06:00 -0400 Subject: [PATCH] Improve error msg on unmarshalling Signed-off-by: Davit Yeghshatyan --- cmd/ingester/app/processor/span_processor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/ingester/app/processor/span_processor.go b/cmd/ingester/app/processor/span_processor.go index c181f1255cf..696545928e1 100644 --- a/cmd/ingester/app/processor/span_processor.go +++ b/cmd/ingester/app/processor/span_processor.go @@ -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) }