From 651147ca72c06d6845654c18267b1060ea7aa514 Mon Sep 17 00:00:00 2001 From: Michael Sverdlov Date: Wed, 8 Jan 2025 15:02:19 +0200 Subject: [PATCH] Update buildtools/cli.go Co-authored-by: Yahav Itschak --- buildtools/cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildtools/cli.go b/buildtools/cli.go index bda336acf..552c553af 100644 --- a/buildtools/cli.go +++ b/buildtools/cli.go @@ -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.