commit | c1d4de5e1277356e74dfb9de647ff5e19ef75445 | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Wed Oct 06 12:45:57 2021 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Wed Oct 06 12:45:57 2021 -0500 |
tree | 5b54a6ca02d6b6f086b22e0e962105d6affece5f | |
parent | a588eafec450a1efcfd0d14b819f703e0e4e8d8d [diff] [blame] |
catch exceptions as const Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: If6aba71f482f75143e6d669763b8853db22318cf
diff --git a/utility.cpp b/utility.cpp index ee65cff..04cb6ae 100644 --- a/utility.cpp +++ b/utility.cpp
@@ -168,7 +168,7 @@ getProperty<int32_t>(POWER_IFACE, "state", POWER_OBJ_PATH, service, bus, state); } - catch (std::exception& e) + catch (const std::exception& e) { log<level::INFO>("Failed to get power state."); }