We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4506bf9 commit 60c1c98Copy full SHA for 60c1c98
legacy/builder/hardware_loader.go
@@ -18,7 +18,6 @@ package builder
18
import (
19
"github.com/arduino/arduino-cli/arduino/cores/packagemanager"
20
"github.com/arduino/arduino-cli/legacy/builder/types"
21
- "github.com/pkg/errors"
22
)
23
24
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
// here's this shitty solution for now.
35
// When we're gonna refactor the legacy package this will be gone.
36
- return errors.WithStack(errs[0].Err())
+
+ 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
42
}
43
ctx.PackageManager = pm
44
0 commit comments