Skip to content

Commit

Permalink
Improve container exception message
Browse files Browse the repository at this point in the history
  • Loading branch information
lookyman committed Nov 27, 2018
1 parent d471f62 commit 9e83865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/XmlServiceMapFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function create(): ServiceMap
{
$xml = @simplexml_load_file($this->containerXml);
if ($xml === false) {
throw new XmlContainerNotExistsException(sprintf('Container %s not exists', $this->containerXml));
throw new XmlContainerNotExistsException(sprintf('Container %s not exists or cannot be parsed', $this->containerXml));
}

/** @var \PHPStan\Symfony\Service[] $services */
Expand Down

0 comments on commit 9e83865

Please sign in to comment.