convert error fromating to %w everywhere (#6995)
This commit is contained in:
@@ -38,7 +38,7 @@ func (p *TopicPublisher) PublishRecord(key []byte, recordValue *schema_pb.Record
|
||||
// serialize record value
|
||||
value, err := proto.Marshal(recordValue)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to marshal record value: %v", err)
|
||||
return fmt.Errorf("failed to marshal record value: %w", err)
|
||||
}
|
||||
|
||||
return p.doPublish(key, value)
|
||||
|
||||
Reference in New Issue
Block a user