From 9cf30d9b70230e51cdb91dafd18e0e296992ff14 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Wed, 9 Jun 2021 21:33:20 +0900 Subject: [PATCH] cmd/ebitenmobile: Handle os.Setenv error Updates #1666 --- cmd/ebitenmobile/gomobile.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cmd/ebitenmobile/gomobile.go b/cmd/ebitenmobile/gomobile.go index 7c90dcdc1..50fda30b4 100644 --- a/cmd/ebitenmobile/gomobile.go +++ b/cmd/ebitenmobile/gomobile.go @@ -81,7 +81,9 @@ func prepareGomobileCommands() error { fmt.Printf("PATH=%s\n", newpath) } if !buildN { - os.Setenv("PATH", newpath) + if err := os.Setenv("PATH", newpath); err != nil { + return err + } } pwd, err := os.Getwd()