Skip to content

Commit

Permalink
update error
Browse files Browse the repository at this point in the history
  • Loading branch information
gunli committed Jul 7, 2023
1 parent 0c4cd03 commit f9498e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pulsar/producer_partition.go
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ func (p *partitionProducer) internalSendAsync(ctx context.Context, msg *Producer

if msg.Value != nil && msg.Payload != nil {
p.log.Error("Can not set Value and Payload both")
runCallback(callback, nil, msg, errors.New("can not set Value and Payload both"))
runCallback(callback, nil, msg, newError(InvalidMessage, "Can not set Value and Payload both"))
return
}

Expand Down

0 comments on commit f9498e0

Please sign in to comment.