fix(object): print object diff error

License: MIT
Signed-off-by: Overbool <overbool.xu@gmail.com>
This commit is contained in:
Overbool 2018-09-14 23:08:22 +08:00
parent e4e35047bd
commit cbe86a91b4

View File

@ -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 {