diff --git a/src/SingleShotAO.cpp b/src/SingleShotAO.cpp index 198af76f6dbfe9cb8e6841a9409a9781a932e6f3..d02281cdd56452f95371c2b767f61ef0d4ad10fd 100755 --- a/src/SingleShotAO.cpp +++ b/src/SingleShotAO.cpp @@ -267,8 +267,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; }