diff --git a/core/commands/object/diff.go b/core/commands/object/diff.go index 9ddc7880671..dd2a6e3ffe9 100644 --- a/core/commands/object/diff.go +++ b/core/commands/object/diff.go @@ -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 {