Skip to content
Snippets Groups Projects
Commit 9479418e authored by Andreas Åkre Solberg's avatar Andreas Åkre Solberg
Browse files

The metadata show files are now using the new fatalerror handler

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@241 44740490-163a-0410-bde0-09ae8108e29a
parent 7f01fd7f
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ require_once('SimpleSAML/XHTML/Template.php');
/* Load simpleSAMLphp, configuration and metadata */
$config = SimpleSAML_Configuration::getInstance();
$session = SimpleSAML_Session::getInstance();
$session = SimpleSAML_Session::getInstance(true);
/* Check if valid local session exists.. */
......@@ -131,13 +131,7 @@ try {
$et->show();
} catch(Exception $exception) {
$et = new SimpleSAML_XHTML_Template($config, 'error.php');
$et->data['message'] = 'Some error occured when trying to generate metadata.';
$et->data['e'] = $exception;
$et->show();
SimpleSAML_Utilities::fatalError($session->getTrackID(), 'METADATA', $exception);
}
......
......@@ -85,12 +85,7 @@ try {
} catch(Exception $exception) {
$et = new SimpleSAML_XHTML_Template($config, 'error.php');
$et->data['message'] = 'Some error occured when trying to generate metadata.';
$et->data['e'] = $exception;
$et->show();
SimpleSAML_Utilities::fatalError($session->getTrackID(), 'METADATA', $exception);
}
......
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