Skip to content

Commit

Permalink
Merge pull request #5469 from overbool/fix/print-object-diff-err
Browse files Browse the repository at this point in the history
fix(object): print object diff error
  • Loading branch information
Stebalien authored Sep 14, 2018
2 parents e4e3504 + cbe86a9 commit e4d8360
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/commands/object/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e4d8360

Please sign in to comment.