ipa: raspberryip: Remove all exception throw statements
Replace all exception throw statements with LOG(RPi*, Fatal) error messages. Signed-off-by: Naushir Patuck <naush@raspberrypi.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
f95bae418c
commit
8757cc7c42
@@ -40,7 +40,7 @@ void Geq::read(boost::property_tree::ptree const ¶ms)
|
||||
config_.offset = params.get<uint16_t>("offset", 0);
|
||||
config_.slope = params.get<double>("slope", 0.0);
|
||||
if (config_.slope < 0.0 || config_.slope >= 1.0)
|
||||
throw std::runtime_error("Geq: bad slope value");
|
||||
LOG(RPiGeq, Fatal) << "Geq: bad slope value";
|
||||
if (params.get_child_optional("strength"))
|
||||
config_.strength.read(params.get_child("strength"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user