diff options
Diffstat (limited to 'src')
-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; |