Refactor nasm,php-sdk-binary-tools,strawberry-perl,vswhere

This commit is contained in:
crazywhalecc
2026-02-06 14:46:57 +08:00
parent 368461d1ad
commit c72a2b6228
7 changed files with 22 additions and 24 deletions

View File

@@ -534,7 +534,7 @@ class PackageInstaller
{
// target and library must have at least source or platform binary
if (in_array($package->getType(), ['library', 'target']) && !$package->getArtifact()?->hasSource() && !$package->getArtifact()?->hasPlatformBinary()) {
throw new WrongUsageException("Validation failed: Target package '{$package->getName()}' has no source or platform binary defined.");
throw new WrongUsageException("Validation failed: Target package '{$package->getName()}' has no source or current platform (" . SystemTarget::getCurrentPlatformString() . ') binary defined.');
}
}