diff --git a/pkg/external/customtemplates/github.go b/pkg/external/customtemplates/github.go index f6fc474ef..499649494 100644 --- a/pkg/external/customtemplates/github.go +++ b/pkg/external/customtemplates/github.go @@ -191,7 +191,7 @@ func (ctr *customTemplateGitHubRepo) pullChanges(repoPath, githubToken string) e err = w.Pull(pullOpts) if err != nil { - return errors.Errorf("%s/%s: %s", ctr.owner, ctr.reponame, err.Error()) + return errors.Wrapf(err, "%s/%s", ctr.owner, ctr.reponame) } return nil