minor
This commit is contained in:
@@ -152,6 +152,7 @@ std::chrono::milliseconds get_deactivation_time(nlohmann::json &json)
|
|||||||
catch(json::type_error &e)
|
catch(json::type_error &e)
|
||||||
{
|
{
|
||||||
// todo log and exit
|
// todo log and exit
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -172,6 +173,7 @@ std::shared_ptr<items::Solenoid> create_solenoid(nlohmann::json &solenoid_json,
|
|||||||
catch(json::type_error &e)
|
catch(json::type_error &e)
|
||||||
{
|
{
|
||||||
// todo log and exit
|
// todo log and exit
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -186,6 +188,7 @@ std::shared_ptr<items::Lamp> create_lamp(nlohmann::json &lamp_json, std::shared_
|
|||||||
catch(json::type_error &e)
|
catch(json::type_error &e)
|
||||||
{
|
{
|
||||||
// todo log and exit
|
// todo log and exit
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -201,6 +204,7 @@ std::shared_ptr<items::Sound> create_sound(nlohmann::json &sound_json, std::shar
|
|||||||
catch(json::type_error &e)
|
catch(json::type_error &e)
|
||||||
{
|
{
|
||||||
// todo log and exit
|
// todo log and exit
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user