multi: wrap all errors

This commit is contained in:
Oliver Gugger authored and Andras Banki-Horvath committed 2024-04-11 15:04:03 +02:00
1 parent 9a28a4c105
commit 648fb22f63
60 files changed
+138 -133

No files matched your search

+2 -2
View File
@@ -252,7 +252,7 @@ func (s *Server) ImportGraph(ctx context.Context,
}
if err := graphDB.AddLightningNode(node); err != nil {
return nil, fmt.Errorf("unable to add node %v: %v",
return nil, fmt.Errorf("unable to add node %v: %w",
rpcNode.PubKey, err)
}
@@ -285,7 +285,7 @@ func (s *Server) ImportGraph(ctx context.Context,
edge.ChannelPoint = *channelPoint
if err := graphDB.AddChannelEdge(edge); err != nil {
return nil, fmt.Errorf("unable to add edge %v: %v",
return nil, fmt.Errorf("unable to add edge %v: %w",
rpcEdge.ChanPoint, err)
}