Errors encountered while analyzing are no longer ignored

This commit is contained in:
Sasha Koshka 2022-10-11 17:13:37 -04:00
parent 41724a7e03
commit d74f3a40dd
2 changed files with 3 additions and 0 deletions

View File

@ -46,6 +46,7 @@ func (analyzer *AnalysisOperation) analyze () (err error) {
modulePath: analyzer.modulePath, modulePath: analyzer.modulePath,
name: sections.Value().Name(), name: sections.Value().Name(),
}) })
if err != nil { return err }
sections.Next() sections.Next()
} }

View File

@ -242,6 +242,8 @@ func (what Type) Describe () (description string) {
description += "UInt" description += "UInt"
case &PrimitiveInt: case &PrimitiveInt:
description += "Int" description += "Int"
case &BuiltInString:
description += "String"
case nil: case nil:
panic("invalid state: Type.actual is nil") panic("invalid state: Type.actual is nil")