diff options
Diffstat (limited to 'server/src/srv.cppm')
| -rw-r--r-- | server/src/srv.cppm | 3 |
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 | { |
| 37 | public: | 37 | public: |
| 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 | |||
| 45 | auto gpx_parse_error_category() noexcept -> gpx_parse_error_category_impl const& | 47 | auto 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 | |||
| 50 | auto gpx_parse_error() noexcept -> std::error_code | 53 | auto 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()}; |