Skip to content
Snippets Groups Projects
Commit 73fe01e3 authored by Guy Halse's avatar Guy Halse
Browse files

Return XML parser error in metarefresh

To aid administrators in finding the root cause of an XML parse fail,
we should return the error message we got from the underlying parser.
parent 6a30edd9
No related branches found
No related tags found
No related merge requests found
...@@ -120,6 +120,7 @@ class sspmod_metarefresh_MetaLoader ...@@ -120,6 +120,7 @@ class sspmod_metarefresh_MetaLoader
$entities = $this->loadXML($data, $source); $entities = $this->loadXML($data, $source);
} catch(Exception $e) { } catch(Exception $e) {
SimpleSAML\Logger::debug('XML parser error when parsing ' . $source['src'] . ' - attempting to re-use cached metadata'); SimpleSAML\Logger::debug('XML parser error when parsing ' . $source['src'] . ' - attempting to re-use cached metadata');
SimpleSAML\Logger::debug('XML parser returned: ' . $e->getMessage());
$this->addCachedMetadata($source); $this->addCachedMetadata($source);
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment