summaryrefslogtreecommitdiffstats
path: root/server/src/srv.cppm
diff options
context:
space:
mode:
authorRutger Broekhoff2026-08-28 23:29:00 +0200
committerRutger Broekhoff2026-08-28 23:29:00 +0200
commit35878b76049b9c3e752480e9f298b7e2da6fdf1f (patch)
tree034bd4bcbbd0445e8f3a13dba0b7d517807bbaaa /server/src/srv.cppm
parentb0d7600970d2fdb1eb6fff813c7336ea34d4e228 (diff)
downloadroutemon-35878b76049b9c3e752480e9f298b7e2da6fdf1f.tar.gz
routemon-35878b76049b9c3e752480e9f298b7e2da6fdf1f.zip
Make RWGPS config optional
Diffstat (limited to 'server/src/srv.cppm')
-rw-r--r--server/src/srv.cppm3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/srv.cppm b/server/src/srv.cppm
index aef28f4..904bf1a 100644
--- a/server/src/srv.cppm
+++ b/server/src/srv.cppm
@@ -36,17 +36,20 @@ class gpx_parse_error_category_impl : public std::error_category
36{ 36{
37public: 37public:
38 char const* name() const noexcept override { return "gpx_parse"; } 38 char const* name() const noexcept override { return "gpx_parse"; }
39
39 auto message(int condition) const noexcept -> std::string override 40 auto message(int condition) const noexcept -> std::string override
40 { 41 {
41 std::ignore = condition; 42 std::ignore = condition;
42 return "failed to parse GPX file"; 43 return "failed to parse GPX file";
43 } 44 }
44}; 45};
46
45auto gpx_parse_error_category() noexcept -> gpx_parse_error_category_impl const& 47auto gpx_parse_error_category() noexcept -> gpx_parse_error_category_impl const&
46{ 48{
47 static auto const inst = gpx_parse_error_category_impl{}; 49 static auto const inst = gpx_parse_error_category_impl{};
48 return inst; 50 return inst;
49} 51}
52
50auto gpx_parse_error() noexcept -> std::error_code 53auto gpx_parse_error() noexcept -> std::error_code
51{ 54{
52 return std::error_code{1, gpx_parse_error_category()}; 55 return std::error_code{1, gpx_parse_error_category()};