![](https://secure.gravatar.com/avatar/8842b5bd0e765e9fbc826b3810bbf6fc?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
Show useful error message when there's a connection issue.
Hi,
I'm currently developing a HLS streaming service.
When I disable my wifi (simulate an internet outage), I got an "TypeError: Cannot read property '0' of undefined" error.
Which is nonsense to the users (not even to the developers).
I want to show a custom error message explaining that there's is a connection issue, but there's no way to detect this kind of error.
I know there's "reason" property in "buffer" event, but the "buffer" event never triggered in my case.
Is there a way to handle this?