Minor changes in exception messages.
This commit is contained in:
parent
84807539b1
commit
6ed2b11211
|
|
@ -95,12 +95,12 @@ class PHPWord_Template
|
||||||
|
|
||||||
$xmlDOMDocument = new \DOMDocument();
|
$xmlDOMDocument = new \DOMDocument();
|
||||||
if ($xmlDOMDocument->loadXML($this->_documentXML) === \FALSE) {
|
if ($xmlDOMDocument->loadXML($this->_documentXML) === \FALSE) {
|
||||||
throw new \Exception('Could not create DOM document for the given XML template.');
|
throw new \Exception('Could not load XML from the given template.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$xmlTransformed = $processor->transformToXml($xmlDOMDocument);
|
$xmlTransformed = $processor->transformToXml($xmlDOMDocument);
|
||||||
if ($xmlTransformed === \FALSE) {
|
if ($xmlTransformed === \FALSE) {
|
||||||
throw new \Exception('Could not apply XSLT to the given DOM document.');
|
throw new \Exception('Could not transform the given XML document.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->_documentXML = $xmlTransformed;
|
$this->_documentXML = $xmlTransformed;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue