diff options
| author | Claudius Holeksa <mail@keldu.de> | 2023-05-16 16:04:28 +0200 |
|---|---|---|
| committer | Claudius Holeksa <mail@keldu.de> | 2023-05-16 16:04:28 +0200 |
| commit | f9083189bb36c39856bfe259096eb5df142ba397 (patch) | |
| tree | 021cf38379e802cd20f0b9c413a9c4213b09c3f5 | |
| parent | 14cb83d0d70aa33135090aed2d6b750f69e189f3 (diff) | |
| download | forstio-forstio-f9083189bb36c39856bfe259096eb5df142ba397.tar.gz | |
c++: Fix naming convention for error
| -rw-r--r-- | src/core/error.cpp | 2 | ||||
| -rw-r--r-- | src/core/error.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/core/error.cpp b/src/core/error.cpp index 727ca95..9f58ef2 100644 --- a/src/core/error.cpp +++ b/src/core/error.cpp @@ -15,7 +15,7 @@ error::error(error &&error) , is_critical_{std::move(error.is_critical_)} , error_message_{std::move(error.error_message_)}{} -const std::string_view error::message() const { +const std::string_view error::get_message() const { return std::visit( [this](auto &&arg) -> const std::string_view { diff --git a/src/core/error.h b/src/core/error.h index 3d242b9..2ed7cd4 100644 --- a/src/core/error.h +++ b/src/core/error.h @@ -34,7 +34,7 @@ public: error &operator=(error &&) = default; - const std::string_view message() const; + const std::string_view get_message() const; bool failed() const; bool is_critical() const; |
