From 2383e4883d2ba8ff21fc21a766a95ea711aa0bd7 Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Wed, 29 Jan 2014 08:10:22 +0100 Subject: 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. --- src/util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/util.h b/src/util.h index 63bad61d23..d2bb8a4afc 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; } -- cgit v1.2.3