File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ package builder
18
18
import (
19
19
"github.com/arduino/arduino-cli/arduino/cores/packagemanager"
20
20
"github.com/arduino/arduino-cli/legacy/builder/types"
21
- "github.com/pkg/errors"
22
21
)
23
22
24
23
type HardwareLoader struct {}
@@ -33,7 +32,13 @@ func (s *HardwareLoader) Run(ctx *types.Context) error {
33
32
// I have no intention right now to start a refactoring of the legacy package too, so
34
33
// here's this shitty solution for now.
35
34
// When we're gonna refactor the legacy package this will be gone.
36
- return errors .WithStack (errs [0 ].Err ())
35
+
36
+ if ctx .Verbose {
37
+ log := ctx .GetLogger ()
38
+ for _ , err := range errs {
39
+ log .Println ("info" , "Error loading hardware platform: {0}" , err .Message ())
40
+ }
41
+ }
37
42
}
38
43
ctx .PackageManager = pm
39
44
}
You can’t perform that action at this time.
0 commit comments