Improved error messages.
authorwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 18 Oct 2002 19:27:38 +0000 (19:27 +0000)
committerwassa <wassa@ab3bd59b-922f-494d-bb5f-6f0a3c29deca>
Fri, 18 Oct 2002 19:27:38 +0000 (19:27 +0000)
git-svn-id: https://subversion.switch.ch/svn/shibboleth/java-idp/trunk@323 ab3bd59b-922f-494d-bb5f-6f0a3c29deca

src/edu/internet2/middleware/shibboleth/aa/AAServlet.java

index 6dd1fcb..c1a9842 100755 (executable)
@@ -210,14 +210,14 @@ public class AAServlet extends HttpServlet {
                                   "InvalidHandle");
                saml.fail(resp, new SAMLException(codes, "AA got a HandleException: "+he));
            }catch(Exception ee){
-               throw new ServletException("AA failed to even make a SAML Failure message because "+ee+"  Origianl problem: "+he);
+               throw new ServletException("AA failed to even make a SAML Failure message because "+ee+"  Original problem: "+he);
            }
        }catch (Exception e) {
-           log.error("AA failed for "+userName+" because of: "+e);
+           log.error("Attribute Authority Error for principal ("+userName+") : " + e.getMessage());
            try{
-               saml.fail(resp, new SAMLException(SAMLException.RESPONDER, "AA got an Exception: "+e));
+               saml.fail(resp, new SAMLException(SAMLException.RESPONDER, "Attribute Authority Error: " + e.getMessage()));
            }catch(Exception ee){
-               throw new ServletException("AA failed to even make a SAML Failure message because "+ee+"  Origianl problem: "+e);
+               throw new ServletException("AA failed to even make a SAML Failure message because "+ee+"  Original problem: "+e);
            }
 
        }