Skip to content

Commit fcf556f

Browse files
committed
Merge bitcoin#10010: util: rename variable to avoid shadowing
9350e13 util: rename variable to avoid shadowing (Pavol Rusnak) Tree-SHA512: 8abc09fdb134c913e823754f3f02a4d8ef120a73f252fbc1217dbd2bdd4ed4fffce92d823a66d1fe51607dc021065df8826f21274ef26e55d82575e96d07224f
2 parents 32d1b34 + 9350e13 commit fcf556f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/util.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ template<typename... Args> std::string FormatStringFromLogArgs(const char *fmt,
8080
std::string _log_msg_; /* Unlikely name to avoid shadowing variables */ \
8181
try { \
8282
_log_msg_ = tfm::format(__VA_ARGS__); \
83-
} catch (tinyformat::format_error &e) { \
83+
} catch (tinyformat::format_error &fmterr) { \
8484
/* Original format string will have newline so don't add one here */ \
85-
_log_msg_ = "Error \"" + std::string(e.what()) + "\" while formatting log message: " + FormatStringFromLogArgs(__VA_ARGS__); \
85+
_log_msg_ = "Error \"" + std::string(fmterr.what()) + "\" while formatting log message: " + FormatStringFromLogArgs(__VA_ARGS__); \
8686
} \
8787
LogPrintStr(_log_msg_); \
8888
} while(0)

0 commit comments

Comments
 (0)