mirror of
https://github.com/lovell/sharp.git
synced 2025-07-15 05:00:14 +02:00
Improve error messaging when platform mismatch detected
This commit is contained in:
parent
6f49be8f26
commit
fc2f672337
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user