We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75dd8ee commit 3b12880Copy full SHA for 3b12880
legacy/builder/container_merge_copy_sketch_files.go
@@ -34,14 +34,15 @@ import (
34
"github.com/arduino/arduino-cli/arduino/sketch"
35
"github.com/arduino/arduino-cli/legacy/builder/i18n"
36
"github.com/arduino/arduino-cli/legacy/builder/types"
37
+ "github.com/go-errors/errors"
38
)
39
40
type ContainerMergeCopySketchFiles struct{}
41
42
func (s *ContainerMergeCopySketchFiles) Run(ctx *types.Context) error {
43
sk := types.SketchFromLegacy(ctx.Sketch)
44
if sk == nil {
- return i18n.WrapError("unable to convert legacy sketch to the new type")
45
+ return i18n.WrapError(errors.New("unable to convert legacy sketch to the new type"))
46
}
47
offset, source := bldr.MergeSketchSources(sk)
48
ctx.LineOffset = offset
0 commit comments