We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74c19ff commit b7d24b8Copy full SHA for b7d24b8
cue/ast.go
@@ -45,11 +45,9 @@ func (inst *Instance) insertFile(f *ast.File) errors.Error {
45
// inserting. For now, we accept errors that did not make it up to the tree.
46
result := v.walk(f)
47
if isBottom(result) {
48
- if v.errors != nil {
49
- return v.errors
50
- }
51
- v := newValueRoot(v.ctx(), result)
52
- return v.toErr(result.(*bottom))
+ val := newValueRoot(v.ctx(), result)
+ v.errors = errors.Append(v.errors, val.toErr(result.(*bottom)))
+ return v.errors
53
}
54
55
return nil
0 commit comments