WebAhead5 / Coronews

Website for coronews
https://webahead5.github.io/Coronews/
0 stars 0 forks source link

error handling #30

Open Karyum opened 4 years ago

Karyum commented 4 years ago

so right now in case 1 of the fetch requests error (or all of them) there is no indication of it, and the lack of data might effect the user experience to the website. there should be a message shown or a fallback html that would shot in case and error has occurred

Karyum commented 4 years ago

https://github.com/WebAhead5/Coronews/blob/master/script/main.js#L57

MorisR commented 4 years ago

can you please give us an example if what you mean?

Karyum commented 4 years ago

at the most basic level you could use an alert() to indicate that something went wrong, a step up from that would be to show a message (colored red) saying what went wrong