Skip to content

Commit

Permalink
add more context to error
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillem committed Jun 11, 2024
1 parent d2a78b0 commit 547e4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion destination/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (c Config) ParseTopic() (topic string, f TopicFn, err error) {
}
topic := buf.String()
if topic == "" {
return "", fmt.Errorf("topic not found on record %s", r.Key.Bytes())
return "", fmt.Errorf("topic not found on record %s using template %s", r.Key.Bytes(), c.Topic)
}

return topic, nil
Expand Down

0 comments on commit 547e4a9

Please sign in to comment.