From fc2f672337365a53b5e3801d6c290807581aa1c8 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Tue, 19 May 2020 18:53:39 +0100 Subject: [PATCH] Improve error messaging when platform mismatch detected --- lib/libvips.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libvips.js b/lib/libvips.js index f98c55cc..a4d494d7 100644 --- a/lib/libvips.js +++ b/lib/libvips.js @@ -65,7 +65,7 @@ const hasVendoredLibvips = function () { if (currentPlatformId === vendorPlatformId) { return true; } else { - throw new Error(`'${vendorPlatformId}' binaries cannot be used on the '${currentPlatformId}' platform. Please remove the 'node_modules/sharp/vendor' directory and run 'npm install'.`); + throw new Error(`'${vendorPlatformId}' binaries cannot be used on the '${currentPlatformId}' platform. Please remove the 'node_modules/sharp' directory and run 'npm install' on the '${currentPlatformId}' platform.`); } } else { return false;