Formatted src/services/sqlite/helpers

This commit is contained in:
Aaron Po
2026-07-19 04:10:33 -04:00
parent 5d48d6757a
commit a238db1d37
2 changed files with 85 additions and 85 deletions

View File

@@ -19,8 +19,8 @@ void SqliteStatementDeleter::operator()(
}
void ThrowSqliteError(sqlite3* db_handle, std::string_view action) {
const std::string message =
db_handle != nullptr ? sqlite3_errmsg(db_handle) : "unknown SQLite error";
const std::string message = db_handle != nullptr ? sqlite3_errmsg(db_handle)
: "unknown SQLite error";
throw std::runtime_error(std::format("{}: {}", action, message));
}