From cba9e095c4ec9108263b89c0b7cbaa86f5297f88 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 26 Feb 2017 22:10:01 +0000 Subject: Update GitError message writer --- gentoobrowse-api/api/impl.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gentoobrowse-api/api/impl.cpp b/gentoobrowse-api/api/impl.cpp index 1da1dfc..f032c3a 100644 --- a/gentoobrowse-api/api/impl.cpp +++ b/gentoobrowse-api/api/impl.cpp @@ -1,11 +1,11 @@ #include -#include +#include namespace Gentoo { + AdHocFormatter(GitErrorMessage, "Git Error: %? (code %?, class %?)"); void GitError::ice_print(std::ostream & s) const { - s << stringbf("Git Error: %s (code %d, class %d)", - message, errorCode, errorClass); + GitErrorMessage::write(s, message, errorCode, errorClass); } } -- cgit v1.2.3