diff --git a/src/Config/ConfigFile.php b/src/Config/ConfigFile.php index a550b793..4bddc5e0 100644 --- a/src/Config/ConfigFile.php +++ b/src/Config/ConfigFile.php @@ -63,7 +63,7 @@ public static function read(string $file): ?ConfigFile $ast = $parser->parse($content); } catch (Error $e) { // should add better handling - throw new Error($e); + throw new ApplicationException($e); } return new static($ast, $file);