Skip to content
Snippets Groups Projects
Commit cbcd59c1 authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

If we are asked to load an unknown auth source, we should raise a...

If we are asked to load an unknown auth source, we should raise a SimpleSAML_Error_AuthSource exception.
parent 3c6ac835
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,7 @@ class SimpleSAML_Auth_Simple {
public function getAuthSource() {
$as = SimpleSAML_Auth_Source::getById($this->authSource);
if ($as === null) {
throw new SimpleSAML_Error_Exception('Invalid authentication source: '.$this->authSource);
throw new SimpleSAML_Error_AuthSource($this->authSource, 'Unknown authentication source.');
}
return $as;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment