From 96b4bd688064dc997d7439aff13636e6185db923 Mon Sep 17 00:00:00 2001
From: Michael Davis <michael.davis@cern.ch>
Date: Mon, 15 Jan 2018 15:01:00 +0100
Subject: [PATCH] [cta-admin] Changes CTA Frontend auth error to UserError (not
 Exception)

---
 xroot_plugins/XrdSsiCtaRequestMessage.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xroot_plugins/XrdSsiCtaRequestMessage.cpp b/xroot_plugins/XrdSsiCtaRequestMessage.cpp
index 3bf5260e11..d1bb13b90e 100644
--- a/xroot_plugins/XrdSsiCtaRequestMessage.cpp
+++ b/xroot_plugins/XrdSsiCtaRequestMessage.cpp
@@ -78,7 +78,7 @@ void RequestMessage::process(const cta::xrd::Request &request, cta::xrd::Respons
       case Request::kAdmincmd:
          // Validate that the Kerberos user is an authorized CTA Admin user
          if(m_protocol != Protocol::KRB5) {
-            throw cta::exception::Exception("[ERROR] Admin commands must be authenticated using the Kerberos 5 protocol.");
+            throw cta::exception::UserError("[ERROR] Admin commands must be authenticated using the Kerberos 5 protocol.");
          }
          m_scheduler.authorizeAdmin(m_cliIdentity, m_lc);
 
-- 
GitLab