Skip to content

Commit

Permalink
Update buildtools/cli.go
Browse files Browse the repository at this point in the history
Co-authored-by: Yahav Itschak <[email protected]>
  • Loading branch information
sverdlov93 and yahavi authored Jan 8, 2025
1 parent f3bb7e4 commit 651147c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion buildtools/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -951,7 +951,7 @@ func setupCmd(c *cli.Context) (err error) {
if packageManagerStr != "" {
packageManager = project.FromString(packageManagerStr)
if !setup.IsSupportedPackageManager(packageManager) {
return errorutils.CheckErrorf("The package manager %s is not supported", packageManagerStr)
return cliutils.PrintHelpAndReturnError(fmt.Sprintf("The package manager %s is not supported", packageManagerStr), c)
}
} else {
// If the package manager wasn't provided as an argument, select it interactively.
Expand Down

0 comments on commit 651147c

Please sign in to comment.