diff options
author | Jaime Perez Crespo <jaime.perez@uninett.no> | 2016-04-13 11:01:43 +0200 |
---|---|---|
committer | Jaime Perez Crespo <jaime.perez@uninett.no> | 2016-04-13 11:01:43 +0200 |
commit | 12b80c9066cd027d0577e09e384647b6b2c982d9 (patch) | |
tree | 3cc7e8b3435239db1c385fb03af41216b9e9250f /lib | |
parent | 51d3517e6a7a456d00cd46567c7dd39fab875656 (diff) | |
download | simplesamlphp-12b80c9066cd027d0577e09e384647b6b2c982d9.zip simplesamlphp-12b80c9066cd027d0577e09e384647b6b2c982d9.tar.gz simplesamlphp-12b80c9066cd027d0577e09e384647b6b2c982d9.tar.bz2 |
Add a proper message to the SimpleSAML_Error_NotFound exception, instead of printing its parameters.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/SimpleSAML/Error/NotFound.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/SimpleSAML/Error/NotFound.php b/lib/SimpleSAML/Error/NotFound.php index 3c8a643..9014290 100644 --- a/lib/SimpleSAML/Error/NotFound.php +++ b/lib/SimpleSAML/Error/NotFound.php @@ -31,8 +31,10 @@ class SimpleSAML_Error_NotFound extends SimpleSAML_Error_Error { if($reason === NULL) { parent::__construct(array('NOTFOUND', '%URL%' => $url)); + $this->message = "The requested page '$url' could not be found."; } else { parent::__construct(array('NOTFOUNDREASON', '%URL%' => $url, '%REASON%' => $reason)); + $this->message = "The requested page '$url' could not be found. ".$reason; } $this->reason = $reason; |