We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 237fd04 commit 135efdaCopy full SHA for 135efda
command/pr_create.go
@@ -37,7 +37,7 @@ func prCreate(cmd *cobra.Command, _ []string) error {
37
38
remote, err := guessRemote(ctx)
39
if err != nil {
40
- return errors.Wrap(err, "could not determine suitable remote")
+ return err
41
}
42
43
if err = git.Push(remote, fmt.Sprintf("HEAD:%s", head)); err != nil {
@@ -179,7 +179,7 @@ func prCreate(cmd *cobra.Command, _ []string) error {
179
func guessRemote(ctx context.Context) (string, error) {
180
remotes, err := ctx.Remotes()
181
182
- return "", errors.Wrap(err, "could not determine suitable remote")
+ return "", errors.Wrap(err, "could not read git remotes")
183
184
185
// TODO: consolidate logic with fsContext.BaseRepo
0 commit comments