Skip to content

Commit

Permalink
fix(cmd): Guard against under-specified user input
Browse files Browse the repository at this point in the history
  • Loading branch information
elldritch committed Jan 26, 2018
1 parent 5161162 commit 59eec8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/fossa/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ func BuildCmd(_ *cli.Context) {
}

func doBuild(config Config) ([]byte, error) {
if len(config.Analyze.Modules) == 0 {
return nil, errors.New("no entry points specified")
}

// TODO: make this work for multiple entry points.
// var modules []build.Module
// for _, module := range config.Analyze.Modules {
Expand Down

0 comments on commit 59eec8a

Please sign in to comment.