mirror of
https://github.com/ipfs/kubo.git
synced 2026-03-06 16:58:11 +08:00
fix(object): print object diff error
License: MIT Signed-off-by: Overbool <overbool.xu@gmail.com>
This commit is contained in:
parent
e4e35047bd
commit
cbe86a91b4
@ -74,6 +74,10 @@ Example:
|
||||
}
|
||||
|
||||
changes, err := api.Object().Diff(req.Context(), pa, pb)
|
||||
if err != nil {
|
||||
res.SetError(err, cmdkit.ErrNormal)
|
||||
return
|
||||
}
|
||||
|
||||
out := make([]*dagutils.Change, len(changes))
|
||||
for i, change := range changes {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user