From b916739d4f21234ce1bba4ce990eab28282ffa49 Mon Sep 17 00:00:00 2001 From: Antoine Pelisse Date: Mon, 30 Oct 2017 14:16:36 -0700 Subject: [PATCH] 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. --- pkg/kubectl/cmd/diff.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/kubectl/cmd/diff.go b/pkg/kubectl/cmd/diff.go index 9770164f71a..dc3b19577ba 100644 --- a/pkg/kubectl/cmd/diff.go +++ b/pkg/kubectl/cmd/diff.go @@ -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