diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-01-29 08:10:22 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-01-29 08:46:15 +0100 |
commit | 2383e4883d2ba8ff21fc21a766a95ea711aa0bd7 (patch) | |
tree | 324b8fb84428c364fb6c611ac001f8513ac03756 | |
parent | 0524bdd63608047f8fc9db542eb198bde8a6d968 (diff) |
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.
-rw-r--r-- | src/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
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<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; } |