diff --git a/src/util.h b/src/util.h index 63bad61d..d2bb8a4a 100644 --- a/src/util.h +++ b/src/util.h @@ -139,7 +139,7 @@ int LogPrintStr(const std::string &str); template \ 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; }