ZippedResourcePack: improved exception error on invalid manifest contents

This commit is contained in:
Dylan K. Taylor 2020-11-28 18:29:13 +00:00
parent c7961bfe90
commit b40720749b

View File

@ -112,7 +112,7 @@ class ZippedResourcePack implements ResourcePack{
/** @var Manifest $manifest */
$manifest = $mapper->map($manifest, new Manifest());
}catch(\JsonMapper_Exception $e){
throw new ResourcePackException("manifest.json is missing required fields");
throw new ResourcePackException("Invalid manifest.json contents: " . $e->getMessage(), 0, $e);
}
$this->manifest = $manifest;