diff --git a/lib/SimpleSAML/Error/NotFound.php b/lib/SimpleSAML/Error/NotFound.php index 3c8a643fd8082d2084af390a5a16faf1802eb29b..90142901b5dac764f94db220f83eb2046026e72f 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;