mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 05:57:25 +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,
|
Parser: parser,
|
||||||
Encoder: f.JSONEncoder(),
|
Encoder: f.JSONEncoder(),
|
||||||
}
|
}
|
||||||
differ.Diff(obj, printer)
|
|
||||||
|
|
||||||
return nil
|
return differ.Diff(obj, printer)
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user