File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
app/code/Magento/Config/Model/Config/Structure Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -124,14 +124,20 @@ protected function _readFiles($fileList)
124
124
* Processing nodes of the document before merging
125
125
*
126
126
* @param string $content
127
+ * @throws \Magento\Framework\Config\Dom\ValidationException
127
128
* @return string
128
129
*/
129
130
protected function processingDocument ($ content )
130
131
{
131
132
$ object = new DataObject ();
132
133
$ document = new \DOMDocument ();
133
134
134
- $ document ->loadXML ($ content );
135
+ try {
136
+ $ document ->loadXML ($ content );
137
+ } catch (\Exception $ e ) {
138
+ throw new \Magento \Framework \Config \Dom \ValidationException ($ e ->getMessage ());
139
+ }
140
+
135
141
$ this ->compiler ->compile ($ document ->documentElement , $ object , $ object );
136
142
137
143
return $ document ->saveXML ();
You can’t perform that action at this time.
0 commit comments