From df4a6521adb4fc2fd58bc104519b403aebc88481 Mon Sep 17 00:00:00 2001 From: Burcu Dogan Date: Sat, 20 Jun 2015 13:15:16 -0700 Subject: [PATCH] cmd/gomobile: improve error message if gomobile hasn't inited gomobile init builds and install the toolchain for iOS builds now. The error message shouldn't exclude the darwin/arm and darwin/arm64 related initialization. Change-Id: Iebd5d7fb1466d9be694d8848c0fd8fa782850c79 Reviewed-on: https://go-review.googlesource.com/11239 Reviewed-by: Hyang-Ah Hana Kim --- cmd/gomobile/build.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/gomobile/build.go b/cmd/gomobile/build.go index ab3701c..f539d76 100644 --- a/cmd/gomobile/build.go +++ b/cmd/gomobile/build.go @@ -357,15 +357,15 @@ func goAndroidBuild(src, libPath string) error { } } if err != nil || gomobilepath == "" { - return errors.New("android toolchain not installed, run:\n\tgomobile init") + return errors.New("toolchain not installed, run:\n\tgomobile init") } verpath := filepath.Join(gomobilepath, "version") installedVersion, err := ioutil.ReadFile(verpath) if err != nil { - return errors.New("android toolchain partially installed, run:\n\tgomobile init") + return errors.New("toolchain partially installed, run:\n\tgomobile init") } if !bytes.Equal(installedVersion, version) { - return errors.New("android toolchain out of date, run:\n\tgomobile init") + return errors.New("toolchain out of date, run:\n\tgomobile init") } ndkccpath = filepath.Join(gomobilepath, "android-"+ndkVersion)