summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-02-26 22:10:01 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2017-02-26 22:44:14 +0000
commitcba9e095c4ec9108263b89c0b7cbaa86f5297f88 (patch)
treed89d48c89937d1e954237c19d4dc2f542dfdd1ad
parentGit operations test data and setup sql (diff)
downloadgentoobrowse-api-cba9e095c4ec9108263b89c0b7cbaa86f5297f88.tar.bz2
gentoobrowse-api-cba9e095c4ec9108263b89c0b7cbaa86f5297f88.tar.xz
gentoobrowse-api-cba9e095c4ec9108263b89c0b7cbaa86f5297f88.zip
Update GitError message writer
-rw-r--r--gentoobrowse-api/api/impl.cpp6
1 files 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 <maintenance.h>
-#include <buffer.h>
+#include <compileTimeFormatter.h>
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);
}
}