mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 04:52:59 +01:00
Re-add newline to error() messages
As reported by @Subo1978, error messages don't have a trailing newline
anymore after commit b77dfdc9
. Add back this newline.
This commit is contained in:
parent
0524bdd636
commit
2383e4883d
@ -139,7 +139,7 @@ int LogPrintStr(const std::string &str);
|
||||
template<TINYFORMAT_ARGTYPES(n)> \
|
||||
static inline bool error(const char* format, TINYFORMAT_VARARGS(n)) \
|
||||
{ \
|
||||
LogPrintStr("ERROR: " + tfm::format(format, TINYFORMAT_PASSARGS(n))); \
|
||||
LogPrintStr("ERROR: " + tfm::format(format, TINYFORMAT_PASSARGS(n)) + "\n"); \
|
||||
return false; \
|
||||
}
|
||||
|
||||
@ -155,7 +155,7 @@ static inline int LogPrint(const char* category, const char* format)
|
||||
}
|
||||
static inline bool error(const char* format)
|
||||
{
|
||||
LogPrintStr(std::string("ERROR: ") + format);
|
||||
LogPrintStr(std::string("ERROR: ") + format + "\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user