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/phosphor-power-supply/psu_manager.hpp b/phosphor-power-supply/psu_manager.hpp index 68dd091..d95caa3 100644 --- a/phosphor-power-supply/psu_manager.hpp +++ b/phosphor-power-supply/psu_manager.hpp
@@ -92,7 +92,7 @@ runValidateConfig = true; } } - catch (std::exception& e) + catch (const std::exception& e) { log<level::INFO>("Failed to get power state. Assuming it is off."); powerOn = false;