cmd/go: fix ignored error check when sanitizing SwigCXXFiles

Change-Id: Icc78a16c1fd128b14e9113016abdfcd6e91f1c1c
Reviewed-on: https://go-review.googlesource.com/c/go/+/746320
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Neal Patel
2026-02-17 13:07:38 -05:00
parent 5c7d8a3e48
commit 20d78eca0a

View File

@@ -3331,7 +3331,7 @@ func (b *Builder) swig(a *Action, objdir string, pcCFLAGS []string) error {
}
}
for _, f := range p.SwigCXXFiles {
if b.swigOne(a, f, objdir, pcCFLAGS, true, intgosize); err != nil {
if err := b.swigOne(a, f, objdir, pcCFLAGS, true, intgosize); err != nil {
return err
}
}