Commit cbe86a91 authored by Overbool's avatar Overbool

fix(object): print object diff error

License: MIT
Signed-off-by: default avatarOverbool <overbool.xu@gmail.com>
parent e4e35047
...@@ -74,6 +74,10 @@ Example: ...@@ -74,6 +74,10 @@ Example:
} }
changes, err := api.Object().Diff(req.Context(), pa, pb) changes, err := api.Object().Diff(req.Context(), pa, pb)
if err != nil {
res.SetError(err, cmdkit.ErrNormal)
return
}
out := make([]*dagutils.Change, len(changes)) out := make([]*dagutils.Change, len(changes))
for i, change := range changes { for i, change := range changes {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment