From 12b80c9066cd027d0577e09e384647b6b2c982d9 Mon Sep 17 00:00:00 2001
From: Jaime Perez Crespo <jaime.perez@uninett.no>
Date: Wed, 13 Apr 2016 11:01:43 +0200
Subject: [PATCH] Add a proper message to the SimpleSAML_Error_NotFound
 exception, instead of printing its parameters.

---
 lib/SimpleSAML/Error/NotFound.php | 2 ++
 1 file changed, 2 insertions(+)

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