mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-06-30 23:29:54 +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 */
|
/** @var Manifest $manifest */
|
||||||
$manifest = $mapper->map($manifest, new Manifest());
|
$manifest = $mapper->map($manifest, new Manifest());
|
||||||
}catch(\JsonMapper_Exception $e){
|
}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;
|
$this->manifest = $manifest;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user