ahmadawais / corona-cli

🦠 Track the Coronavirus disease (COVID-19) in the command line. Worldwide for all countries, for one country, and the US States. Fast response time (< 100ms). To chat: https://twitter.com/MrAhmadAwais/
https://NodeCLI.com
MIT License
1.85k stars 191 forks source link

Better error message when there's no internet connection #69

Open marvinjude opened 4 years ago

marvinjude commented 4 years ago

Nice work! @ahmadawais

The CLI displays "API is down" when data fetching fails, that's not so bad, but I think it feels better to let users know they're offline.

Something like this

Screen Shot 2020-04-03 at 1 00 56 PM
marvinjude commented 4 years ago

I have a commit that fixes this, should I send in a PR?

ahmadawais commented 4 years ago

Sure thing send in a PR

marvinjude commented 4 years ago

There you go 🙂