diff --git a/src/SingleShotAO.cpp b/src/SingleShotAO.cpp index d56848ae4cf210ed6c2e5561d56cdaf74a95aecf..12080ad1b6e0e2610e965d2e23eeb08c173848bb 100755 --- a/src/SingleShotAO.cpp +++ b/src/SingleShotAO.cpp @@ -277,8 +277,15 @@ void SingleShotAO::init_device() ERROR_STREAM << "SingleShotAO::init_device::Tango::DevFailed exception caught " << "while trying to read device properties from TANGO database" << std::endl; - ERROR_STREAM << df << std::endl; - m_currStatus = "Failed to get property. See log for details"; + std::string error_msg = df.errors[0].desc; + std::istringstream error_stream(error_msg); + std::string line; + std::getline(error_stream, line); // Read the first line + ERROR_STREAM << line << std::endl; + while (std::getline(error_stream, line)) { // Read the rest of the lines + ERROR_STREAM << " - " << line << std::endl; + } + m_currStatus = error_msg; m_state = Tango::FAULT; return; }