ffmpeg: add specific error for invalid SSL cert

This commit is contained in:
Calvin Montgomery 2017-07-22 11:32:43 -07:00
parent 282ad986b6
commit 08a42f6739
1 changed files with 6 additions and 0 deletions

View File

@ -119,6 +119,12 @@ function testUrl(url, cb, redirCount) {
});
req.on("error", function (err) {
if (/hostname\/ip doesn't match/i.test(err.message)) {
cb("The remote server provided an invalid SSL certificate. Details: "
+ err.reason);
return;
}
LOGGER.error("Error sending preflight request: %s (link: %s)", err.message, url);
cb("An unexpected error occurred while trying to process the link. " +
"Try again, and contact support for further troubleshooting if the " +