Skip to content

Commit

Permalink
additional error message when parsing type definition
Browse files Browse the repository at this point in the history
  • Loading branch information
GodModeOn committed Mar 6, 2023
1 parent 9faf8b3 commit 6aa60c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -1115,6 +1115,7 @@ func (parser *Parser) ParseDefinition(typeSpecDef *TypeSpecDef) (*Schema, error)

definition, err := parser.parseTypeExpr(typeSpecDef.File, typeSpecDef.TypeSpec.Type, false)
if err != nil {
parser.debug.Printf("Error parsing type definition '%s': %s", typeName, err)
return nil, err
}

Expand Down

0 comments on commit 6aa60c0

Please sign in to comment.