From ee9c70f4070b36d2d015b67d05de8cc3842610f6 Mon Sep 17 00:00:00 2001 From: Philippe Martin Date: Fri, 16 Sep 2022 15:26:18 +0200 Subject: [PATCH] Fix integration test --- pkg/watch/watch.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkg/watch/watch.go b/pkg/watch/watch.go index 7c870d265c2..58c941c10f6 100644 --- a/pkg/watch/watch.go +++ b/pkg/watch/watch.go @@ -474,7 +474,11 @@ func (o *WatchClient) processEvents( fmt.Fprintf(out, "Updated Kubernetes config\n") } } else { - fmt.Fprintf(out, "%s - %s\n\n", PushErrorString, err.Error()) + if parameters.WatchFiles { + fmt.Fprintf(out, "%s - %s\n\n", PushErrorString, err.Error()) + } else { + return nil, err + } } wait := backoff.Delay() return &wait, nil