From f33b68642c95e155f8c90d4786850c3a7af39d89 Mon Sep 17 00:00:00 2001
From: Olav Morken <olav.morken@uninett.no>
Date: Mon, 13 Jul 2009 06:19:43 +0000
Subject: [PATCH] saml2/sp/AssertionConsumerService: Show more information on
 receiving an error from the IdP.

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@1579 44740490-163a-0410-bde0-09ae8108e29a
---
 www/saml2/sp/AssertionConsumerService.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/www/saml2/sp/AssertionConsumerService.php b/www/saml2/sp/AssertionConsumerService.php
index ba3cf812f..984953719 100644
--- a/www/saml2/sp/AssertionConsumerService.php
+++ b/www/saml2/sp/AssertionConsumerService.php
@@ -105,7 +105,7 @@ try {
 		} else {
 			/* We don't have an error handler. Show an error page. */
 			SimpleSAML_Utilities::fatalError($session->getTrackID(), 'RESPONSESTATUSNOSUCCESS',
-				new Exception("Status = " . $statusCode));
+				$authnResponse->getStatus());
 		}
 	}
 
-- 
GitLab