diff: Propragate errors when diffing

Because of that, errors while diffing would potentially not do anything,
leaving the user clueless of what was going on.
This commit is contained in:
Antoine Pelisse 2017-10-30 14:16:36 -07:00
parent 6659f2a7d8
commit b916739d4f

View File

@ -446,9 +446,8 @@ func RunDiff(f cmdutil.Factory, diff *DiffProgram, options *DiffOptions, from, t
Parser: parser,
Encoder: f.JSONEncoder(),
}
differ.Diff(obj, printer)
return nil
return differ.Diff(obj, printer)
})
if err != nil {
return err