catch exceptions as const
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I9e474f2b3e936b9961eaa08693744c466736e768
diff --git a/src/PwmSensor.cpp b/src/PwmSensor.cpp
index f76ea50..7b03e68 100644
--- a/src/PwmSensor.cpp
+++ b/src/PwmSensor.cpp
@@ -199,7 +199,7 @@
uint32_t value = std::stoi(line);
return value;
}
- catch (std::invalid_argument&)
+ catch (const std::invalid_argument&)
{
std::cerr << "Error reading pwm at " << sysPath << "\n";
// throw if not initial read to be caught by dbus bindings