commit | 6d724ce88b150d0dde3ef2ea0bcd5c9f3fbb3af8 | [log] [tgz] |
---|---|---|
author | Patrick Williams <patrick@stwcx.xyz> | Wed Oct 06 12:40:26 2021 -0500 |
committer | Patrick Williams <patrick@stwcx.xyz> | Wed Oct 06 12:40:26 2021 -0500 |
tree | 2b0796ec44548e1c5c04f03923b7c587dfe4210d | |
parent | 703c7609353f707f5abb33f4ca726b1803463a92 [diff] [blame] |
catch exceptions as const Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I3a2943bbae131c4528a9bc487524beb31e850357
diff --git a/src/main.cpp b/src/main.cpp index eb96b13..27f9b6f 100644 --- a/src/main.cpp +++ b/src/main.cpp
@@ -71,7 +71,7 @@ phosphor::logging::entry("RET=%d", ret)); } } - catch (std::exception& e) + catch (const std::exception& e) { phosphor::logging::log<phosphor::logging::level::ERR>(e.what()); ret = -1;