Skip to content

Commit

Permalink
error out when packages cannot be loaded
Browse files Browse the repository at this point in the history
related to #10

PiperOrigin-RevId: 716161251
Change-Id: If93b601e2dc7a491839d076cdea59f5a18993612
  • Loading branch information
stapelberg authored and copybara-github committed Jan 16, 2025
1 parent 71ada42 commit 6c944b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/o2o/loader/loaderblaze.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ func (l *BlazeLoader) LoadPackages(ctx context.Context, targets []*Target, res c
failBatch(targets, res, fmt.Errorf("BUG: Load() returned package %s, which was not requested", pkg.ID))
return
}
if len(pkg.Errors) > 0 {
failBatch(targets, res, fmt.Errorf("Loading package failed:\n%s", pkg.Errors))
return
}
}

LoadedPackage:
Expand Down

0 comments on commit 6c944b1

Please sign in to comment.