diff --git a/cmd/dendrite-demo-yggdrasil/main.go b/cmd/dendrite-demo-yggdrasil/main.go index f64bb2513..84e2dbd03 100644 --- a/cmd/dendrite-demo-yggdrasil/main.go +++ b/cmd/dendrite-demo-yggdrasil/main.go @@ -62,7 +62,9 @@ func main() { } ygg.SetMulticastEnabled(true) if instancePeer != nil && *instancePeer != "" { - ygg.SetStaticPeer(*instancePeer) + if err := ygg.SetStaticPeer(*instancePeer); err != nil { + logrus.WithError(err).Error("Failed to set static peer") + } } cfg := &config.Dendrite{}