compiler: Don't ignore errors in parsePackage

This commit is contained in:
Ayke van Laethem
2018-04-26 23:40:19 +02:00
parent f4ee774866
commit d13566b302
+4 -1
View File
@@ -210,7 +210,10 @@ func (c *Compiler) Parse(mainPath string, buildTags []string) error {
}
for _, pkg := range packageList {
c.parsePackage(program, pkg)
err := c.parsePackage(program, pkg)
if err != nil {
return err
}
}
// After all packages are imported, add a synthetic initializer function