diff options
| author | Rutger Broekhoff | 2026-08-28 22:17:10 +0200 |
|---|---|---|
| committer | Rutger Broekhoff | 2026-08-28 22:17:10 +0200 |
| commit | 70643a9e4821bd11c3f363f1708fe420965467d1 (patch) | |
| tree | 65572b58e247248846628940a2aaca197a15d784 /server/src/database.cppm | |
| parent | 173cd34bdd0717d3f4beeac76b3296ecd46ada0d (diff) | |
| download | routemon-70643a9e4821bd11c3f363f1708fe420965467d1.tar.gz routemon-70643a9e4821bd11c3f363f1708fe420965467d1.zip | |
Format again
Diffstat (limited to 'server/src/database.cppm')
| -rw-r--r-- | server/src/database.cppm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/database.cppm b/server/src/database.cppm index 86ed0d7..c31d610 100644 --- a/server/src/database.cppm +++ b/server/src/database.cppm | |||
| @@ -31,15 +31,15 @@ export auto open(std::string const& filename) -> std::shared_ptr<connection> | |||
| 31 | if (version != expected_database_version) | 31 | if (version != expected_database_version) |
| 32 | { | 32 | { |
| 33 | throw std::runtime_error{std::format( | 33 | throw std::runtime_error{std::format( |
| 34 | "database migration version ({}) does not match expected " | 34 | "database migration version ({}) does not match expected " |
| 35 | "version ({}), consider running migrations", | 35 | "version ({}), consider running migrations", |
| 36 | *version, expected_database_version)}; | 36 | *version, expected_database_version)}; |
| 37 | } | 37 | } |
| 38 | } | 38 | } |
| 39 | catch (std::exception const& e) | 39 | catch (std::exception const& e) |
| 40 | { | 40 | { |
| 41 | throw std::runtime_error{std::format( | 41 | throw std::runtime_error{std::format( |
| 42 | "failed to query database version: {}", e.what())}; | 42 | "failed to query database version: {}", e.what())}; |
| 43 | } | 43 | } |
| 44 | return std::shared_ptr<connection>{new connection{std::move(dbc)}}; | 44 | return std::shared_ptr<connection>{new connection{std::move(dbc)}}; |
| 45 | } | 45 | } |