Check error from provideRoot

This commit is contained in:
gammazero 2025-11-07 08:18:03 -10:00
parent 4dcd6ac681
commit f5e6d687d4

View File

@ -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)
}
}
}