Skip to content

Commit

Permalink
Fix crasher
Browse files Browse the repository at this point in the history
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
  • Loading branch information
dubo-dubon-duponey committed May 12, 2021
1 parent d3f3799 commit e9968e4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dagger/compiler/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ func Build(sources map[string]fs.FS, args ...string) (*Value, error) {
if len(instances) != 1 {
return nil, errors.New("only one package is supported at a time")
}
for _, value := range instances {
if value.Err != nil {
return nil, value.Err
}
}
v, err := c.Context.BuildInstances(instances)
if err != nil {
return nil, errors.New(cueerrors.Details(err, &cueerrors.Config{}))
Expand Down

0 comments on commit e9968e4

Please sign in to comment.