mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
ebitenutil: Modify error message on load resources (JS)
This commit is contained in:
parent
2132925b88
commit
16e5b3f37e
@ -43,8 +43,7 @@ func NewImageFromFile(path string, filter ebiten.Filter) (*ebiten.Image, image.I
|
||||
})
|
||||
req.Call("addEventListener", "error", func() {
|
||||
defer close(ch)
|
||||
// TODO: Add more information.
|
||||
err = errors.New("http error")
|
||||
err = errors.New(fmt.Sprintf("XMLHttpRequest error: %s", req.Get("statusText").String()))
|
||||
})
|
||||
req.Call("send")
|
||||
<-ch
|
||||
|
Loading…
Reference in New Issue
Block a user