diff --git a/common/dataStructures/Tape.cpp b/common/dataStructures/Tape.cpp index c3e6119dcbac106db48a4c8d2ce11293bcea8938..3eccc11538773835cabf85775ee18d81a12d6433 100644 --- a/common/dataStructures/Tape.cpp +++ b/common/dataStructures/Tape.cpp @@ -17,7 +17,7 @@ #include "common/dataStructures/Tape.hpp" #include "common/dataStructures/utils.hpp" -#include "common/exception/Exception.hpp" +#include "common/exception/UserError.hpp" #include "common/utils/utils.hpp" namespace cta::common::dataStructures { @@ -129,7 +129,7 @@ Tape::State Tape::stringToState(const std::string& stateStr, bool hidePendingSta try { return Tape::STRING_TO_STATE_MAP.at(stateUpperCase); } catch(std::out_of_range &ex){ - throw cta::exception::Exception(std::string("The state given (") + stateUpperCase + ") does not exist. Possible values are " + Tape::getAllPossibleStates(hidePendingStates)); + throw cta::exception::UserError(std::string("The state given (") + stateUpperCase + ") does not exist. Possible values are " + Tape::getAllPossibleStates(hidePendingStates)); } } diff --git a/xroot_plugins/XrdSsiCtaRequestProc.cpp b/xroot_plugins/XrdSsiCtaRequestProc.cpp index 7eff401642041aef049ee6427287d43f3ab07468..a9ccf42473d0a80d5e584d76d2cb58a2636f227d 100644 --- a/xroot_plugins/XrdSsiCtaRequestProc.cpp +++ b/xroot_plugins/XrdSsiCtaRequestProc.cpp @@ -80,7 +80,7 @@ void RequestProc<cta::xrd::Request, cta::xrd::Response, cta::xrd::Alert>::Execut } catch(cta::exception::UserError &ex) { m_metadata.set_type(cta::xrd::Response::RSP_ERR_USER); m_metadata.set_message_txt(ex.getMessageValue()); - lc.log(cta::log::ERR, ErrorFunction + "RSP_ERR_USER: " + ex.getMessageValue()); + lc.log(cta::log::INFO, ErrorFunction + "RSP_ERR_USER: " + ex.getMessageValue()); } catch(cta::exception::Exception &ex) { m_metadata.set_type(cta::xrd::Response::RSP_ERR_CTA); m_metadata.set_message_txt(ex.getMessageValue());