You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! I use my own custom asset loader.
The app user may enter an non existing OSM way ID, causing a web error 404.
I would like to catch that error and only write a text in the UI, no crash please.
I can't test except info! because it runs on WASM web.
It looks like my on_load function is not even called.
There is no on_error, is there?
You may try it here: http://www.osmgo.org/bevy.html is ok.
But http://www.osmgo.org/bevy.html&way=4711 is not.
Repo: https://github.com/DerKarlos/obi/blob/master/src/bevy_ui.rs
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! I use my own custom asset loader.
The app user may enter an non existing OSM way ID, causing a web error 404.
I would like to catch that error and only write a text in the UI, no crash please.
I can't test except info! because it runs on WASM web.
It looks like my on_load function is not even called.
There is no on_error, is there?
You may try it here: http://www.osmgo.org/bevy.html is ok.
But http://www.osmgo.org/bevy.html&way=4711 is not.
Repo: https://github.com/DerKarlos/obi/blob/master/src/bevy_ui.rs
Beta Was this translation helpful? Give feedback.
All reactions