From 4b48966e1d844a9f7ba3e2b2c38d6c836fe033ac Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Sat, 6 Jan 2018 10:13:07 -0800 Subject: [PATCH] Add ffprobe errors for ECONNRESET and CERT_HAS_EXPIRED --- src/ffmpeg.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ffmpeg.js b/src/ffmpeg.js index 7d2b8b8a..938f0749 100644 --- a/src/ffmpeg.js +++ b/src/ffmpeg.js @@ -13,6 +13,7 @@ const ECODE_MESSAGES = { 'Please check that the link is correct.' ), EPROTO: e => 'The remote server does not support HTTPS.', + ECONNRESET: e => 'The remote server unexpectedly closed the connection.', ECONNREFUSED: e => ( 'The remote server refused the connection. ' + 'Please check that the link is correct and the server is running.' @@ -36,6 +37,10 @@ const ECODE_MESSAGES = { "The remote server's SSL certificate chain could not be validated. " + "Please contact the administrator of the server to correct their " + "SSL certificate configuration." + ), + CERT_HAS_EXPIRED: e => ( + "The remote server's SSL certificate has expired. Please contact " + + "the administrator of the server to renew the certificate." ) };