Skip to content

Commit

Permalink
use errors.New
Browse files Browse the repository at this point in the history
  • Loading branch information
tashima42 committed Jan 9, 2024
1 parent 3a6c06f commit d17f6fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repository/repository.go
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ func PerformBackport(ctx context.Context, client *github.Client, pbo *PerformBac
logrus.Info("opening git repository at working directory")
r, err = git.PlainOpen(cwd)
if err != nil {
return nil, fmt.Errorf("not in a git repository, make sure you are executing this inside the %s repo: %s", pbo.Repo, err)
return nil, errors.New("not in a git repository, make sure you are executing this inside the " + pbo.Repo + " repo: " + err.Error())
}

logrus.Info("getting repository worktree")
Expand Down

0 comments on commit d17f6fe

Please sign in to comment.