Skip to content

Commit 9e83865

Browse files
committed
Improve container exception message
1 parent d471f62 commit 9e83865

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/XmlServiceMapFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function create(): ServiceMap
2222
{
2323
$xml = @simplexml_load_file($this->containerXml);
2424
if ($xml === false) {
25-
throw new XmlContainerNotExistsException(sprintf('Container %s not exists', $this->containerXml));
25+
throw new XmlContainerNotExistsException(sprintf('Container %s not exists or cannot be parsed', $this->containerXml));
2626
}
2727

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

0 commit comments

Comments
 (0)