mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
examples: Better error message
This commit is contained in:
parent
99d170b454
commit
fabafff7ed
@ -65,7 +65,11 @@ func createJSIfNeeded(name string) (string, error) {
|
||||
target := "github.com/hajimehoshi/ebiten/examples/" + name
|
||||
out, err := exec.Command("gopherjs", "build", "--tags", "example", "-o", out, target).CombinedOutput()
|
||||
if err != nil {
|
||||
log.Print(string(out))
|
||||
if string(out) == "" {
|
||||
log.Print("gopherjs command execution failed: gopherjs not command?")
|
||||
} else {
|
||||
log.Printf("gopherjs command execution failed: %s", string(out))
|
||||
}
|
||||
return "", errors.New(string(out))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user