1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-21 01:39:36 +01:00

Error classname as name

This commit is contained in:
Ben Burdette 2020-04-28 21:06:08 -06:00
parent e51a757720
commit 22e6490311
5 changed files with 55 additions and 41 deletions

View file

@ -196,7 +196,7 @@ SQLiteTxn::~SQLiteTxn()
}
}
void handleSQLiteBusy(const SQLiteBusy & e)
void handleSQLiteBusy(SQLiteBusy & e)
{
static std::atomic<time_t> lastWarned{0};

View file

@ -99,7 +99,7 @@ MakeError(SQLiteBusy, SQLiteError);
[[noreturn]] void throwSQLiteError(sqlite3 * db, const FormatOrString & fs);
void handleSQLiteBusy(const SQLiteBusy & e);
void handleSQLiteBusy(SQLiteBusy & e);
/* Convenience function for retrying a SQLite transaction when the
database is busy. */