Skip to content
Snippets Groups Projects
Commit 44b893a0 authored by Alejandro Homs Puron's avatar Alejandro Homs Puron Committed by Generic Bliss account for Control Software
Browse files

Throw an exception if errors when opening config file

parent dbd0d8ab
No related branches found
No related tags found
No related merge requests found
Pipeline #186195 failed
......@@ -48,6 +48,10 @@ void Camera::AppInputData::parseConfigFile()
DEB_MEMBER_FUNCT();
ifstream config_file(config_file_name);
if (config_file.fail())
THROW_HW_FATAL(InvalidValue) << "Error opening config file: "
<< config_file_name;
while (config_file) {
string s;
config_file >> s;
......
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