diff --git a/core/node/libp2p/rcmgr.go b/core/node/libp2p/rcmgr.go index 1dca185b7..7aa8d21c4 100644 --- a/core/node/libp2p/rcmgr.go +++ b/core/node/libp2p/rcmgr.go @@ -96,7 +96,7 @@ func ResourceManager(cfg config.SwarmConfig) interface{} { Namespace: "rcmgr_trace_metrics", }) if err != nil { - return nil, opts, fmt.Errorf("creating new prom exporter", err) + return nil, opts, fmt.Errorf("creating new prom exporter: %w", err) } if os.Getenv("LIBP2P_DEBUG_RCMGR") != "" {