Skip to content

Allow naming sketches like "RCS" and "CVS" #537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 9, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
avoid paniking if main sketch file is missing
  • Loading branch information
Massimiliano Pippi committed Jan 2, 2020
commit 6de1e7405058ba0ca2106ed888a002efc2a9fcbe
5 changes: 5 additions & 0 deletions legacy/builder/container_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
package builder

import (
"fmt"

bldr "github.com/arduino/arduino-cli/arduino/builder"
"github.com/arduino/arduino-cli/legacy/builder/builder_utils"
"github.com/arduino/arduino-cli/legacy/builder/i18n"
Expand Down Expand Up @@ -75,6 +77,9 @@ func (s *ContainerSetupHardwareToolsLibsSketchAndProps) Run(ctx *types.Context)
if err != nil {
return i18n.WrapError(err)
}
if sketch.MainFile == nil {
return fmt.Errorf("main file missing from sketch")
}
ctx.SketchLocation = paths.New(sketch.MainFile.Path)
ctx.Sketch = types.SketchToLegacy(sketch)
}
Expand Down