mirror of https://github.com/calzoneman/sync.git
ffmpeg: add specific error for invalid SSL cert
This commit is contained in:
parent
282ad986b6
commit
08a42f6739
|
@ -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 " +
|
||||
|
|
Loading…
Reference in New Issue