File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,15 @@ import (
34
34
"github.com/arduino/arduino-cli/arduino/sketch"
35
35
"github.com/arduino/arduino-cli/legacy/builder/i18n"
36
36
"github.com/arduino/arduino-cli/legacy/builder/types"
37
+ "github.com/go-errors/errors"
37
38
)
38
39
39
40
type ContainerMergeCopySketchFiles struct {}
40
41
41
42
func (s * ContainerMergeCopySketchFiles ) Run (ctx * types.Context ) error {
42
43
sk := types .SketchFromLegacy (ctx .Sketch )
43
44
if sk == nil {
44
- 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" ) )
45
46
}
46
47
offset , source := bldr .MergeSketchSources (sk )
47
48
ctx .LineOffset = offset
You can’t perform that action at this time.
0 commit comments