From f5e6d687d4cc70dc752abbb48cf0830da0aba4db Mon Sep 17 00:00:00 2001 From: gammazero <11790789+gammazero@users.noreply.github.com> Date: Fri, 7 Nov 2025 08:18:03 -1000 Subject: [PATCH] Check error from provideRoot --- core/commands/routing.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/commands/routing.go b/core/commands/routing.go index e8c6cdc18..1beb0976c 100644 --- a/core/commands/routing.go +++ b/core/commands/routing.go @@ -234,7 +234,9 @@ var provideRefRoutingCmd = &cmds.Command{ // If node has a DHT client, provide immediately the supplied cids before // returning. for _, c := range cids { - provideRoot(req.Context, dhtClient, c) + if err = provideRoot(req.Context, dhtClient, c); err != nil { + return fmt.Errorf("error providing root cid: %w", err) + } } }