Adjust QtTranslationLoader to throw RuntimeException

This commit is contained in:
Benjamin Eberlei 2011-09-04 20:29:01 +02:00
parent 21b29c201b
commit 571279823a

View File

@ -33,7 +33,7 @@ class QtTranslationsLoader implements LoaderInterface
$dom = new \DOMDocument();
$current = libxml_use_internal_errors(true);
if (!@$dom->load($resource, LIBXML_COMPACT)) {
throw new \Exception(implode("\n", $this->getXmlErrors()));
throw new \RuntimeException(implode("\n", $this->getXmlErrors()));
}
$xpath = new \DOMXPath($dom);