Skip to content
Snippets Groups Projects

develop -> main

1 file
+ 9
2
Compare changes
  • Side-by-side
  • Inline
+ 9
2
@@ -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;
}
Loading