-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Problem
The CLI depends on an active internet connection, when there isn't, it throws an unhandled error. To handle this scenario gracefully, we can display an error message when the network connection is lost.
Optional: add a check for the network connection before sending any requests, and show an appropriate message if the connection is not available.
How to reproduce
Close your internet connection and run c0d3 login
Expected behavior
$ npx c0d3 login
✔ Username: user
✔ Password: 4321
Oops, looks like we're having trouble connecting to our servers. It's possible your internet connection is playing hard to get. Make sure you're connected to a strong and stable internet connection and check if any sneaky firewalls or internet settings are getting in the way. If you're still having issues, don't sweat it - just give us a shout and we'll help you get things sorted!
Please create an issue about it with a way to reproduce it in https://github.com/garageScript/c0d3-cli/issues
Actual behavior
$ npx c0d3 login
✔ Username: user
✔ Password: 4321
✖ Unhandled error. Please create an issue about it with a way to reproduce it in https://github.com/garageScript/c0d3-cli/issues
anthonykhoa
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working