@@ -25,7 +25,6 @@ import (
2525 "sync"
2626
2727 "github.com/arduino/arduino-cli/legacy/builder/constants"
28- "github.com/arduino/arduino-cli/legacy/builder/i18n"
2928 "github.com/arduino/arduino-cli/legacy/builder/types"
3029 "github.com/arduino/arduino-cli/legacy/builder/utils"
3130 "github.com/arduino/go-paths-helper"
@@ -490,7 +489,7 @@ func ArchiveCompiledFiles(ctx *types.Context, buildPath *paths.Path, archiveFile
490489
491490func ExecRecipe (ctx * types.Context , buildProperties * properties.Map , recipe string , stdout int , stderr int ) ([]byte , []byte , error ) {
492491 // See util.ExecCommand for stdout/stderr arguments
493- command , err := PrepareCommandForRecipe (ctx , buildProperties , recipe , false )
492+ command , err := PrepareCommandForRecipe (buildProperties , recipe , false )
494493 if err != nil {
495494 return nil , nil , errors .WithStack (err )
496495 }
@@ -500,11 +499,10 @@ func ExecRecipe(ctx *types.Context, buildProperties *properties.Map, recipe stri
500499
501500const COMMANDLINE_LIMIT = 30000
502501
503- func PrepareCommandForRecipe (ctx * types.Context , buildProperties * properties.Map , recipe string , removeUnsetProperties bool ) (* exec.Cmd , error ) {
504- logger := ctx .GetLogger ()
502+ func PrepareCommandForRecipe (buildProperties * properties.Map , recipe string , removeUnsetProperties bool ) (* exec.Cmd , error ) {
505503 pattern := buildProperties .Get (recipe )
506504 if pattern == "" {
507- return nil , i18n . ErrorfWithLogger ( logger , constants . MSG_PATTERN_MISSING , recipe )
505+ return nil , errors . Errorf ( "%s pattern is missing" , recipe )
508506 }
509507
510508 commandLine := buildProperties .ExpandPropsInString (pattern )
0 commit comments