Skip to content

Commit

Permalink
Exception made more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
esokullu authored Jan 30, 2018
1 parent 4d2856e commit d13ec93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Pho/Lib/GraphQL/Parser/Parse.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -94,4 +94,4 @@ public function entity(int $n): Entity
return new Entity($this->ast["definitions"][$n]);
}

}
}

0 comments on commit d13ec93

Please sign in to comment.