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

Add a proper message to the SimpleSAML_Error_NotFound exception, instead of...

Add a proper message to the SimpleSAML_Error_NotFound exception, instead of printing its parameters.
parent 51d3517e
No related branches found
No related tags found
No related merge requests found
...@@ -31,8 +31,10 @@ class SimpleSAML_Error_NotFound extends SimpleSAML_Error_Error { ...@@ -31,8 +31,10 @@ class SimpleSAML_Error_NotFound extends SimpleSAML_Error_Error {
if($reason === NULL) { if($reason === NULL) {
parent::__construct(array('NOTFOUND', '%URL%' => $url)); parent::__construct(array('NOTFOUND', '%URL%' => $url));
$this->message = "The requested page '$url' could not be found.";
} else { } else {
parent::__construct(array('NOTFOUNDREASON', '%URL%' => $url, '%REASON%' => $reason)); parent::__construct(array('NOTFOUNDREASON', '%URL%' => $url, '%REASON%' => $reason));
$this->message = "The requested page '$url' could not be found. ".$reason;
} }
$this->reason = $reason; $this->reason = $reason;
......
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