Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion value.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
)

var (
ErrMissingField = errors.New("record missing a field")
ErrNotContainer = errors.New("expected container type, got primitive")
)

Expand Down
2 changes: 1 addition & 1 deletion walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func walkRecord(typ *TypeRecord, body scode.Bytes, visit Visitor) error {
it := body.Iter()
for _, f := range typ.Fields {
if it.Done() {
return ErrMissingField
return errors.New("record missing a field")
}
elem := it.Next()
if IsNone(f.Type, elem) {
Expand Down
Loading