Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-cli
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Operations
Operations
Metrics
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-cli
Commits
60c1c98e
Unverified
Commit
60c1c98e
authored
Jan 03, 2022
by
Cristian Maglie
Committed by
GitHub
Jan 03, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not abort build if loading errors happens for not compiled platforms (#1606)
This is mostly useful for "arduino-builder".
parent
4506bf9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
legacy/builder/hardware_loader.go
legacy/builder/hardware_loader.go
+7
-2
No files found.
legacy/builder/hardware_loader.go
View file @
60c1c98e
...
...
@@ -18,7 +18,6 @@ package builder
import
(
"github.com/arduino/arduino-cli/arduino/cores/packagemanager"
"github.com/arduino/arduino-cli/legacy/builder/types"
"github.com/pkg/errors"
)
type
HardwareLoader
struct
{}
...
...
@@ -33,7 +32,13 @@ func (s *HardwareLoader) Run(ctx *types.Context) error {
// I have no intention right now to start a refactoring of the legacy package too, so
// here's this shitty solution for now.
// When we're gonna refactor the legacy package this will be gone.
return
errors
.
WithStack
(
errs
[
0
]
.
Err
())
if
ctx
.
Verbose
{
log
:=
ctx
.
GetLogger
()
for
_
,
err
:=
range
errs
{
log
.
Println
(
"info"
,
"Error loading hardware platform: {0}"
,
err
.
Message
())
}
}
}
ctx
.
PackageManager
=
pm
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment