From d13ec938bce8b7703d77c8365c175bac7178dd73 Mon Sep 17 00:00:00 2001 From: Emre Sokullu Date: Tue, 30 Jan 2018 18:54:19 +0300 Subject: [PATCH] Exception made more explicit --- src/Pho/Lib/GraphQL/Parser/Parse.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Pho/Lib/GraphQL/Parser/Parse.php b/src/Pho/Lib/GraphQL/Parser/Parse.php index 55efa74..2f8cb1b 100644 --- a/src/Pho/Lib/GraphQL/Parser/Parse.php +++ b/src/Pho/Lib/GraphQL/Parser/Parse.php @@ -52,7 +52,7 @@ public function __construct(string $graphql) $this->ast = $this->parser->parse(file_get_contents($graphql)); } catch(\Exception $e) { - throw new Exceptions\InvalidSchemaException($e); + throw new Exceptions\InvalidSchemaException($graphql, $e); } $this->def = $this->ast; // for Debuggable compatibility @@ -94,4 +94,4 @@ public function entity(int $n): Entity return new Entity($this->ast["definitions"][$n]); } -} \ No newline at end of file +}