From 47237b1f15dde84cb68f34d272f8512d997d0efc Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Thu, 7 Dec 2017 23:16:33 +0000 Subject: [PATCH] Add expected min libvips version to error messages --- binding.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/binding.js b/binding.js index 52db6242..e6bc0baa 100644 --- a/binding.js +++ b/binding.js @@ -56,15 +56,15 @@ module.exports.download_vips = function () { // Ensure Intel 64-bit or ARM const arch = process.env.npm_config_arch || process.arch; if (arch === 'ia32') { - error('Intel Architecture 32-bit systems require manual installation of libvips - please see http://sharp.dimens.io/page/install'); + error(`Intel Architecture 32-bit systems require manual installation of libvips >= ${minimumLibvipsVersion} - please see http://sharp.dimens.io/page/install`); } // Ensure glibc Linux if (detectLibc.isNonGlibcLinux) { - error(`Use with ${detectLibc.family} libc requires manual installation of libvips - please see http://sharp.dimens.io/page/install`); + error(`Use with ${detectLibc.family} libc requires manual installation of libvips >= ${minimumLibvipsVersion} - please see http://sharp.dimens.io/page/install`); } // Ensure glibc >= 2.13 if (detectLibc.family === detectLibc.GLIBC && detectLibc.version && semver.lt(`${detectLibc.version}.0`, '2.13.0')) { - error(`Use with glibc version ${detectLibc.version} requires manual installation of libvips - please see http://sharp.dimens.io/page/install`); + error(`Use with glibc version ${detectLibc.version} requires manual installation of libvips >= ${minimumLibvipsVersion} - please see http://sharp.dimens.io/page/install`); } // Arch/platform-specific .tar.gz const tarFilename = ['libvips', minimumLibvipsVersion, currentPlatformId].join('-') + '.tar.gz';