From 6ed2b1121126c564d677ebba8c4b72ee78da9c70 Mon Sep 17 00:00:00 2001 From: Roman Syroeshko Date: Sun, 2 Mar 2014 05:14:51 -0800 Subject: [PATCH] https://github.com/PHPOffice/PHPWord/issues/46 Minor changes in exception messages. --- Classes/PHPWord/Template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/PHPWord/Template.php b/Classes/PHPWord/Template.php index c846c298..0e431c3c 100755 --- a/Classes/PHPWord/Template.php +++ b/Classes/PHPWord/Template.php @@ -95,12 +95,12 @@ class PHPWord_Template $xmlDOMDocument = new \DOMDocument(); 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); 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;