Add ManifestDoesNotExistException and Solution (#4455)
Co-authored-by: Matthew Penner <matthew@pterodactyl.io>
This commit is contained in:
parent
b1abae8106
commit
16c2b606b4
3 changed files with 47 additions and 1 deletions
|
@ -5,6 +5,7 @@ namespace Pterodactyl\Services\Helpers;
|
|||
use Illuminate\Support\Arr;
|
||||
use Illuminate\Filesystem\FilesystemManager;
|
||||
use Illuminate\Contracts\Filesystem\Filesystem;
|
||||
use Pterodactyl\Exceptions\ManifestDoesNotExistException;
|
||||
|
||||
class AssetHashService
|
||||
{
|
||||
|
@ -106,6 +107,11 @@ class AssetHashService
|
|||
);
|
||||
}
|
||||
|
||||
return static::$manifest;
|
||||
$manifest = static::$manifest;
|
||||
if ($manifest === null) {
|
||||
throw new ManifestDoesNotExistException();
|
||||
}
|
||||
|
||||
return $manifest;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue