Output the build error in plugin

This commit is contained in:
Asim Aslam 2019-11-01 08:33:14 +00:00
parent f089a89e8a
commit 0aa01b2ebf

View File

@ -121,5 +121,7 @@ func (p *plugin) Build(path string, c *Config) error {
return fmt.Errorf("Failed to create dir %s: %v", filepath.Dir(path), err)
}
cmd := exec.Command("go", "build", "-buildmode=plugin", "-o", path+".so", goFile)
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
return cmd.Run()
}