Skip to content

Commit

Permalink
Fix broken panicing
Browse files Browse the repository at this point in the history
  • Loading branch information
isimluk committed Jun 7, 2020
1 parent 1fbdab6 commit d3e2069
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/xsd/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (sch *Schema) findReferencedAttribute(ref reference) *Attribute {
func (sch *Schema) findReferencedElement(ref reference) *Element {
innerSchema := sch.findReferencedSchemaByPrefix(ref.NsPrefix())
if innerSchema == nil {
panic("Internal error: referenced element '" + ref + "' cannot be found.")
panic("Internal error: referenced element '" + string(ref) + "' cannot be found.")
}
if innerSchema != sch {
sch.registerImportedModule(innerSchema)
Expand Down

0 comments on commit d3e2069

Please # to comment.