aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/build.cc6
-rw-r--r--src/libstore/sqlite.cc4
-rw-r--r--src/libstore/sqlite.hh2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index e162e81aa..b8613427e 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -156,7 +156,7 @@ public:
abort();
}
- void trace(const format & f);
+ void trace(const FormatOrString & fs);
string getName()
{
@@ -417,9 +417,9 @@ void Goal::amDone(ExitCode result)
}
-void Goal::trace(const format & f)
+void Goal::trace(const FormatOrString & fs)
{
- debug(format("%1%: %2%") % name % f);
+ debug("%1%: %2%", name, fs.s);
}
diff --git a/src/libstore/sqlite.cc b/src/libstore/sqlite.cc
index b13001b06..42d40e71d 100644
--- a/src/libstore/sqlite.cc
+++ b/src/libstore/sqlite.cc
@@ -7,7 +7,7 @@
namespace nix {
-[[noreturn]] void throwSQLiteError(sqlite3 * db, const format & f)
+[[noreturn]] void throwSQLiteError(sqlite3 * db, const FormatOrString & fs)
{
int err = sqlite3_errcode(db);
@@ -21,7 +21,7 @@ namespace nix {
: fmt("SQLite database '%s' is busy", path));
}
else
- throw SQLiteError("%s: %s (in '%s')", f.str(), sqlite3_errstr(err), path);
+ throw SQLiteError("%s: %s (in '%s')", fs.s, sqlite3_errstr(err), path);
}
SQLite::SQLite(const Path & path)
diff --git a/src/libstore/sqlite.hh b/src/libstore/sqlite.hh
index 14a7a0dd8..115679b84 100644
--- a/src/libstore/sqlite.hh
+++ b/src/libstore/sqlite.hh
@@ -93,7 +93,7 @@ struct SQLiteTxn
MakeError(SQLiteError, Error);
MakeError(SQLiteBusy, SQLiteError);
-[[noreturn]] void throwSQLiteError(sqlite3 * db, const format & f);
+[[noreturn]] void throwSQLiteError(sqlite3 * db, const FormatOrString & fs);
void handleSQLiteBusy(const SQLiteBusy & e);