mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
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:
parent
6659f2a7d8
commit
b916739d4f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user