Skip to content

Commit

Permalink
Removed Error from console zulip#126[WIP]
Browse files Browse the repository at this point in the history
  • Loading branch information
Lplenka committed Apr 17, 2017
1 parent 06faf46 commit bd2f17d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,14 @@ function serverError(targetURL) {
}
});
req.on('error', e => {
console.error(e);
if (e.toString().indexOf('Error: self signed certificate') >= 0) {
var url = targetURL.replace(/^https?:\/\//, '');
console.log('Server StatusCode:', 200);
console.log('You are connected to:', url);
} else {
console.error(e);
}

});
req.end();
} else if (data.domain) {
Expand Down

0 comments on commit bd2f17d

Please sign in to comment.