From c3954b2d3dbbdefd6d7e07d5047e09c792d143ce Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Tue, 19 Jan 2021 10:56:32 +1100 Subject: [PATCH] Reword DNS error in NPM driver --- src/drivers/npm/driver.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index 45dfe9cf5..f66ac0444 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -755,6 +755,10 @@ class Site { throw new Error('The website took too long to respond') } + if (error.message.includes('net::ERR_NAME_NOT_RESOLVED')) { + throw new Error('Hostname could not be resolved') + } + throw new Error(error.message) } }