Commit 592bbdc5 authored by Martino Facchin's avatar Martino Facchin Committed by Cristian Maglie

Don't bail out if trying to upload external binary

No functional modification for standard flow (compile+upload without -i flag)
parent 09f8600d
...@@ -208,7 +208,7 @@ func run(command *cobra.Command, args []string) { ...@@ -208,7 +208,7 @@ func run(command *cobra.Command, args []string) {
uploadProperties.SetPath("build.path", importPath) uploadProperties.SetPath("build.path", importPath)
uploadProperties.Set("build.project_name", importFile) uploadProperties.Set("build.project_name", importFile)
if _, err := sketch.FullPath.Join(importFile + ext).Stat(); err != nil { if _, err := importPath.Join(importFile + ext).Stat(); err != nil {
if os.IsNotExist(err) { if os.IsNotExist(err) {
formatter.PrintErrorMessage("Compiled sketch not found. Please compile first.") formatter.PrintErrorMessage("Compiled sketch not found. Please compile first.")
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment