Skip to content

Commit 5056614

Browse files
committed
minor fix: improve the error reporting
Related to: #158
1 parent 7fa44ad commit 5056614

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/xsd/restriction.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (r *Restriction) compile(sch *Schema, parentElement *Element) {
2525
}
2626

2727
if r.Base == "" {
28-
panic("Not implemented: xsd:extension/@base empty, cannot extend unknown type")
28+
panic("Not implemented: xsd:restriction/@base empty, cannot extend unknown type")
2929
}
3030

3131
r.typ = sch.findReferencedType(r.Base)

0 commit comments

Comments
 (0)