From 2990d83c022769d85a5c8319f009e460ff4788da Mon Sep 17 00:00:00 2001 From: Calvin Montgomery Date: Mon, 14 Aug 2017 20:33:09 -0700 Subject: [PATCH] ffmpeg: add ETIMEDOUT error message --- src/ffmpeg.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ffmpeg.js b/src/ffmpeg.js index 727ef041..45844262 100644 --- a/src/ffmpeg.js +++ b/src/ffmpeg.js @@ -129,6 +129,9 @@ function testUrl(url, cb, redirCount) { } else if (err.code === 'ECONNREFUSED') { cb("The remote server refused the connection. Please check that the link is correct."); return; + } else if (err.code === 'ETIMEDOUT') { + cb("The connection to the remote server timed out. Please check that the link is correct."); + return; } LOGGER.error("Error sending preflight request: %s (link: %s)", err.message, url);