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) } }