We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
arduino
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 255587f commit 48983e4Copy full SHA for 48983e4
commands/upload/upload.go
@@ -244,6 +244,9 @@ func runProgramAction(pm *packagemanager.PackageManager,
244
if !burnBootloader {
245
if importFile != "" {
246
importFilePath := paths.New(importFile)
247
+ if !importFilePath.Exist() {
248
+ return fmt.Errorf("binary file not found in %s", importFilePath)
249
+ }
250
importPath = importFilePath.Parent()
251
// In general, the binary file extension (like .bin or .hex or even .zip) are already written explicitly in
252
// the core recipes. This why the CLI removes it before setting the build.project_name property.
0 commit comments