We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 32d1b34 + 9350e13 commit fcf556fCopy full SHA for fcf556f
src/util.h
@@ -80,9 +80,9 @@ template<typename... Args> std::string FormatStringFromLogArgs(const char *fmt,
80
std::string _log_msg_; /* Unlikely name to avoid shadowing variables */ \
81
try { \
82
_log_msg_ = tfm::format(__VA_ARGS__); \
83
- } catch (tinyformat::format_error &e) { \
+ } catch (tinyformat::format_error &fmterr) { \
84
/* 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__); \
+ _log_msg_ = "Error \"" + std::string(fmterr.what()) + "\" while formatting log message: " + FormatStringFromLogArgs(__VA_ARGS__); \
86
} \
87
LogPrintStr(_log_msg_); \
88
} while(0)
0 commit comments