From 06512ed35138d7f717f5e6b876a25995bde1479f Mon Sep 17 00:00:00 2001 From: Sourcegraph Bot Date: Mon, 11 May 2020 02:51:46 +0000 Subject: [PATCH] Update fmt.Errorf --- vcs/gitcmd/repo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vcs/gitcmd/repo.go b/vcs/gitcmd/repo.go index c7fead1..72ecc53 100644 --- a/vcs/gitcmd/repo.go +++ b/vcs/gitcmd/repo.go @@ -493,11 +493,11 @@ func (r *Repository) commitLog(opt vcs.CommitsOptions) ([]*vcs.Commit, uint, err authorTime, err := strconv.ParseInt(string(parts[3]), 10, 64) if err != nil { - return nil, 0, fmt.Errorf("parsing git commit author time: %s", err) + return nil, 0, fmt.Errorf("parsing git commit author time: %w", err) } committerTime, err := strconv.ParseInt(string(parts[6]), 10, 64) if err != nil { - return nil, 0, fmt.Errorf("parsing git commit committer time: %s", err) + return nil, 0, fmt.Errorf("parsing git commit committer time: %w", err) } var parents []vcs.CommitID