Skip to content
Snippets Groups Projects
Commit 96b4bd68 authored by Michael Davis's avatar Michael Davis
Browse files

[cta-admin] Changes CTA Frontend auth error to UserError (not Exception)

parent 0949ff81
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment