mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-10-15 01:54:43 +00:00
Formatted src/services/sqlite/helpers
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user