From b6b9d6d5cc8552815f392517e15b20240baae8de Mon Sep 17 00:00:00 2001 From: silenceshell Date: Tue, 27 Aug 2019 23:52:38 +0800 Subject: [PATCH] add err as a param for log.Errorf --- pkg/gitops/gitdir/gitdir.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/gitops/gitdir/gitdir.go b/pkg/gitops/gitdir/gitdir.go index 0eafe3f14..69a160646 100644 --- a/pkg/gitops/gitdir/gitdir.go +++ b/pkg/gitops/gitdir/gitdir.go @@ -176,7 +176,7 @@ func (d *GitDirectory) commitLoop() error { files, err := d.checkout.ChangedFiles(context.Background(), d.branch) if err != nil { - log.Errorf("couldn't get changed files: %v") + log.Errorf("couldn't get changed files: %v", err) continue }