Adjust QtTranslationLoader to throw RuntimeException
This commit is contained in:
parent
21b29c201b
commit
571279823a
@ -33,7 +33,7 @@ class QtTranslationsLoader implements LoaderInterface
|
|||||||
$dom = new \DOMDocument();
|
$dom = new \DOMDocument();
|
||||||
$current = libxml_use_internal_errors(true);
|
$current = libxml_use_internal_errors(true);
|
||||||
if (!@$dom->load($resource, LIBXML_COMPACT)) {
|
if (!@$dom->load($resource, LIBXML_COMPACT)) {
|
||||||
throw new \Exception(implode("\n", $this->getXmlErrors()));
|
throw new \RuntimeException(implode("\n", $this->getXmlErrors()));
|
||||||
}
|
}
|
||||||
|
|
||||||
$xpath = new \DOMXPath($dom);
|
$xpath = new \DOMXPath($dom);
|
||||||
|
Reference in New Issue
Block a user