Upgrade to 3.8.1.1

This commit is contained in:
Bastian Allgeier
2022-10-25 11:51:57 +02:00
parent 9c93e01c3a
commit de62b5f553
10 changed files with 107 additions and 63 deletions

View File

@@ -36,8 +36,9 @@ abstract class Handler
public static function read(string $file): array
{
$contents = F::read($file);
if ($contents === false) {
throw new Exception('The file "' . $file . '" does not exist');
throw new Exception('The file "' . $file . '" does not exist or cannot be read');
}
return static::decode($contents);