File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import (
2828 "github.com/arduino/arduino-cli/commands"
2929 "github.com/arduino/arduino-cli/common/formatter"
3030 "github.com/arduino/arduino-cli/executils"
31- "github.com/arduino/go-paths-helper"
31+ paths "github.com/arduino/go-paths-helper"
3232 properties "github.com/arduino/go-properties-orderedmap"
3333 "github.com/sirupsen/logrus"
3434 "github.com/spf13/cobra"
@@ -208,9 +208,10 @@ func run(command *cobra.Command, args []string) {
208208
209209 uploadProperties .SetPath ("build.path" , importPath )
210210 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 {
212213 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." )
214215 } else {
215216 formatter .PrintError (err , "Could not open compiled sketch." )
216217 }
You can’t perform that action at this time.
0 commit comments