fix(copilot): provide full path to copilot binary on exec error
Co-authored-by: Kynan Ware <47394200+BagToad@users.noreply.github.com>
This commit is contained in:
parent
601dd346b0
commit
ae7bd54d43
1 changed files with 2 additions and 2 deletions
|
|
@ -183,10 +183,10 @@ func runCopilot(opts *CopilotOptions) error {
|
|||
os.Exit(exitErr.ExitCode())
|
||||
}
|
||||
if foundInPath {
|
||||
// The binary exists in PATH but exec failed, possibly due to
|
||||
// We found a `copilot` binary but exec failed, possibly due to
|
||||
// unusual characters in the path (see https://github.com/cli/cli/issues/13106).
|
||||
// Suggest running copilot directly as a workaround.
|
||||
return fmt.Errorf("%w\nTry running `copilot` directly without `gh`.", err)
|
||||
return fmt.Errorf("%w\nFailed to run '%s', try running `copilot` directly without `gh`.", err, copilotPath)
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue