Fix crasher
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
This commit is contained in:
parent
d3f3799976
commit
e9968e4c90
@ -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{}))
|
||||
|
Reference in New Issue
Block a user