@@ -25,7 +25,6 @@ import (
25
25
"sync"
26
26
27
27
"github.com/arduino/arduino-cli/legacy/builder/constants"
28
- "github.com/arduino/arduino-cli/legacy/builder/i18n"
29
28
"github.com/arduino/arduino-cli/legacy/builder/types"
30
29
"github.com/arduino/arduino-cli/legacy/builder/utils"
31
30
"github.com/arduino/go-paths-helper"
@@ -490,7 +489,7 @@ func ArchiveCompiledFiles(ctx *types.Context, buildPath *paths.Path, archiveFile
490
489
491
490
func ExecRecipe (ctx * types.Context , buildProperties * properties.Map , recipe string , stdout int , stderr int ) ([]byte , []byte , error ) {
492
491
// See util.ExecCommand for stdout/stderr arguments
493
- command , err := PrepareCommandForRecipe (ctx , buildProperties , recipe , false )
492
+ command , err := PrepareCommandForRecipe (buildProperties , recipe , false )
494
493
if err != nil {
495
494
return nil , nil , errors .WithStack (err )
496
495
}
@@ -500,11 +499,10 @@ func ExecRecipe(ctx *types.Context, buildProperties *properties.Map, recipe stri
500
499
501
500
const COMMANDLINE_LIMIT = 30000
502
501
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 ) {
505
503
pattern := buildProperties .Get (recipe )
506
504
if pattern == "" {
507
- return nil , i18n . ErrorfWithLogger ( logger , constants . MSG_PATTERN_MISSING , recipe )
505
+ return nil , errors . Errorf ( "%s pattern is missing" , recipe )
508
506
}
509
507
510
508
commandLine := buildProperties .ExpandPropsInString (pattern )
0 commit comments