mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-16 02:33:28 +00:00
compiler: Don't ignore errors in parsePackage
This commit is contained in:
@@ -210,7 +210,10 @@ func (c *Compiler) Parse(mainPath string, buildTags []string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for _, pkg := range packageList {
|
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
|
// After all packages are imported, add a synthetic initializer function
|
||||||
|
|||||||
Reference in New Issue
Block a user