Commit d50ef8c
committed
fix: Improve error message returned by Subsume
Previously when Subsume determined that a field did not subsume
a previous field, the error returned was:
```
field x not present in <value>
```
which is simply not true. Now a more useful error is returned in this
scenario:
```
31 | 33 does not subsume 32:
./schema.cue:2:25
./schema.cue:7:25
```
Resolves: #3861
Signed-off-by: Graham Dennis <[email protected]>1 parent 1856281 commit d50ef8c
File tree
3 files changed
+567
-231
lines changed- internal/core/subsume
- testdata
3 files changed
+567
-231
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | | - | |
| 123 | + | |
126 | 124 | | |
127 | | - | |
| 125 | + | |
128 | 126 | | |
129 | 127 | | |
130 | 128 | | |
| |||
0 commit comments