From 045b11231d53983577c4448f08d41d19b36409cb Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Tue, 16 Oct 2018 15:59:29 -0700 Subject: user_mgr: throw original exception [user_mgr.cpp:696]: (style) Throwing a copy of the caught exception instead of rethrowing the original exception. [user_mgr.cpp:923]: (style) Throwing a copy of the caught exception instead of rethrowing the original exception. [user_mgr.cpp:949]: (style) Throwing a copy of the caught exception instead of rethrowing the original exception. [user_mgr.cpp:974]: (style) Throwing a copy of the caught exception instead of rethrowing the original exception. [user_mgr.cpp:999]: (style) Throwing a copy of the caught exception instead of rethrowing the original exception. Change-Id: I57243acf997c248b38f52926c0a8dd525b32cc90 Signed-off-by: Patrick Venture --- user_mgr.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/user_mgr.cpp b/user_mgr.cpp index 786a8fd..c5b068d 100644 --- a/user_mgr.cpp +++ b/user_mgr.cpp @@ -693,7 +693,7 @@ bool UserMgr::userLockedForFailedAttempt(const std::string &userName) { log("Exception for userLockedForFailedAttempt", entry("WHAT=%s", e.what())); - throw e; + throw; } } log("Unable to get user account failed attempt", @@ -920,7 +920,7 @@ UserMgr::UserMgr(sdbusplus::bus::bus &bus, const char *path) : { log("Exception for MinPasswordLength", entry("WHAT=%s", e.what())); - throw e; + throw; } AccountPolicyIface::minPasswordLength(value); } @@ -946,7 +946,7 @@ UserMgr::UserMgr(sdbusplus::bus::bus &bus, const char *path) : { log("Exception for RememberOldPasswordTimes", entry("WHAT=%s", e.what())); - throw e; + throw; } AccountPolicyIface::rememberOldPasswordTimes(value); } @@ -971,7 +971,7 @@ UserMgr::UserMgr(sdbusplus::bus::bus &bus, const char *path) : { log("Exception for MaxLoginAttemptBeforLockout", entry("WHAT=%s", e.what())); - throw e; + throw; } AccountPolicyIface::maxLoginAttemptBeforeLockout(value16); } @@ -996,7 +996,7 @@ UserMgr::UserMgr(sdbusplus::bus::bus &bus, const char *path) : { log("Exception for AccountUnlockTimeout", entry("WHAT=%s", e.what())); - throw e; + throw; } AccountPolicyIface::accountUnlockTimeout(value32); } -- cgit v1.2.1