Skip to content

Commit cb79f49

Browse files
authored
improve CreatePeerNoValidate error message (#2133)
customer currently hitting this error, want to be sure what kind of config is actually being received
1 parent aafb029 commit cb79f49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

flow/connectors/utils/peers.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ func CreatePeerNoValidate(
2222
peerType := peer.Type
2323
wrongConfigResponse := &protos.CreatePeerResponse{
2424
Status: protos.CreatePeerStatus_FAILED,
25-
Message: fmt.Sprintf("invalid config for %s peer %s",
26-
peerType, peer.Name),
25+
Message: fmt.Sprintf("invalid config for %s peer %s: %T",
26+
peerType, peer.Name, config),
2727
}
2828
var innerConfig proto.Message
2929
switch peerType {

0 commit comments

Comments
 (0)