mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 16:51:42 +00:00
ZippedResourcePack: improved exception error on invalid manifest contents
This commit is contained in:
parent
c7961bfe90
commit
b40720749b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user