File tree 1 file changed +4
-3
lines changed 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import (
28
28
"github.com/arduino/arduino-cli/commands"
29
29
"github.com/arduino/arduino-cli/common/formatter"
30
30
"github.com/arduino/arduino-cli/executils"
31
- "github.com/arduino/go-paths-helper"
31
+ paths "github.com/arduino/go-paths-helper"
32
32
properties "github.com/arduino/go-properties-orderedmap"
33
33
"github.com/sirupsen/logrus"
34
34
"github.com/spf13/cobra"
@@ -208,9 +208,10 @@ func run(command *cobra.Command, args []string) {
208
208
209
209
uploadProperties .SetPath ("build.path" , importPath )
210
210
uploadProperties .Set ("build.project_name" , importFile )
211
- if _ , err := importPath .Join (importFile + ext ).Stat (); err != nil {
211
+ uploadFile := importPath .Join (importFile + ext )
212
+ if _ , err := uploadFile .Stat (); err != nil {
212
213
if os .IsNotExist (err ) {
213
- formatter .PrintErrorMessage ("Compiled sketch not found. Please compile first." )
214
+ formatter .PrintErrorMessage ("Compiled sketch not found: " + uploadFile . String () + " . Please compile first." )
214
215
} else {
215
216
formatter .PrintError (err , "Could not open compiled sketch." )
216
217
}
You can’t perform that action at this time.
0 commit comments