Skip to content

Commit

Permalink
improve CreatePeerNoValidate error message (#2133)
Browse files Browse the repository at this point in the history
customer currently hitting this error, want to be sure what kind of config is actually being received
  • Loading branch information
serprex authored Oct 10, 2024
1 parent aafb029 commit cb79f49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flow/connectors/utils/peers.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ func CreatePeerNoValidate(
peerType := peer.Type
wrongConfigResponse := &protos.CreatePeerResponse{
Status: protos.CreatePeerStatus_FAILED,
Message: fmt.Sprintf("invalid config for %s peer %s",
peerType, peer.Name),
Message: fmt.Sprintf("invalid config for %s peer %s: %T",
peerType, peer.Name, config),
}
var innerConfig proto.Message
switch peerType {
Expand Down

0 comments on commit cb79f49

Please sign in to comment.