Is there any way to check from github api that its unable to connect to github and internet is not connected so when i initialize the api by this :
GitHubApi = require("github");
github = new GitHubApi({
version: "3.0.0"
});
it should tell by exception that unable to connect to github or internet not connected to allow me to stop using other operations of this API
Is there any way to check from github api that its unable to connect to github and internet is not connected so when i initialize the api by this :
it should tell by exception that unable to connect to github or internet not connected to allow me to stop using other operations of this API