Skip to content
Snippets Groups Projects
Commit 1634a1b5 authored by Olav Morken's avatar Olav Morken
Browse files

Error_MetadataNotFound: Pass proper error code to constructor.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@2740 44740490-163a-0410-bde0-09ae8108e29a
parent 372f4704
No related branches found
No related tags found
No related merge requests found
...@@ -205,5 +205,11 @@ ...@@ -205,5 +205,11 @@
}, },
"descr_NOSTATE": { "descr_NOSTATE": {
"en": "State information lost, and no way to restart the request" "en": "State information lost, and no way to restart the request"
},
"title_METADATANOTFOUND": {
"en": "Metadata not found"
},
"descr_METADATANOTFOUND": {
"en": "Unable to locate metadata for %ENTITYID%"
} }
} }
...@@ -24,7 +24,11 @@ class SimpleSAML_Error_MetadataNotFound extends SimpleSAML_Error_Error { ...@@ -24,7 +24,11 @@ class SimpleSAML_Error_MetadataNotFound extends SimpleSAML_Error_Error {
public function __construct($entityId) { public function __construct($entityId) {
assert('is_string($entityId)'); assert('is_string($entityId)');
parent::__construct('Unable to locate metadata for ' . var_export($entityId, TRUE) . '.'); parent::__construct(array(
'METADATANOTFOUND',
'ENTITYID' => htmlspecialchars(var_export($entityId, TRUE))
));
$this->entityId = $entityId; $this->entityId = $entityId;
} }
......
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