Skip to content

Commit

Permalink
fix record key bytes to string in error
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillem committed Jun 12, 2024
1 parent 33a9952 commit 5683f8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion destination/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,10 @@ func (c Config) ParseTopic() (topic string, f TopicFn, err error) {
}
topic := buf.String()
if topic == "" {
return "", fmt.Errorf("topic not found on record %s using template %s", r.Key.Bytes(), c.Topic)
return "", fmt.Errorf(
"topic not found on record %s using template %s",
string(r.Key.Bytes()), c.Topic,
)
}

return topic, nil
Expand Down

0 comments on commit 5683f8e

Please sign in to comment.