diff options
| author | Rutger Broekhoff | 2026-08-28 22:22:24 +0200 |
|---|---|---|
| committer | Rutger Broekhoff | 2026-08-28 22:22:24 +0200 |
| commit | b0d7600970d2fdb1eb6fff813c7336ea34d4e228 (patch) | |
| tree | 051d6f80c7e332f4b31027025ae7c60c7ac70742 /server/src/database.cppm | |
| parent | 70643a9e4821bd11c3f363f1708fe420965467d1 (diff) | |
| download | routemon-b0d7600970d2fdb1eb6fff813c7336ea34d4e228.tar.gz routemon-b0d7600970d2fdb1eb6fff813c7336ea34d4e228.zip | |
Indent tweaks
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 c31d610..86ed0d7 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 | } |