diff --git a/src/pocketmine/resourcepacks/ZippedResourcePack.php b/src/pocketmine/resourcepacks/ZippedResourcePack.php index 40ef7cc23..902b83b85 100644 --- a/src/pocketmine/resourcepacks/ZippedResourcePack.php +++ b/src/pocketmine/resourcepacks/ZippedResourcePack.php @@ -86,8 +86,11 @@ class ZippedResourcePack implements ResourcePack{ $archive->close(); $manifest = json_decode($manifestData); - if($manifest === null or !self::verifyManifest($manifest)){ - throw new ResourcePackException("manifest.json is invalid or incomplete"); + if($manifest === null){ + throw new ResourcePackException("Failed to parse manifest.json: " . json_last_error_msg()); + } + if(!self::verifyManifest($manifest)){ + throw new ResourcePackException("manifest.json is missing required fields"); } $this->manifest = $manifest;