diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-06-10 23:45:17 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2023-06-10 23:45:17 +0200 |
commit | 73fac05aa07a0dd16f7061baddd4b934c7855fed (patch) | |
tree | a604b60635052450755729beaa8450c402ab05a6 /src/core/error.cpp | |
parent | 6c8e3d1786a5de4ae562c03693b8dad9dd0ab26e (diff) |
c++: Setting up testing progress
Diffstat (limited to 'src/core/error.cpp')
-rw-r--r-- | src/core/error.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/error.cpp b/src/core/error.cpp index 7258740..ef8dc57 100644 --- a/src/core/error.cpp +++ b/src/core/error.cpp @@ -32,7 +32,7 @@ const std::string_view error::get_message() const { } bool error::failed() const { - return this->is_error<err::no_error>(); + return this->is_type<err::no_error>(); } bool error::is_critical() const { @@ -104,7 +104,7 @@ error_or<error::code> error_registry::search_or_register_id(const std::string_vi auto& err = err_or_id.get_error(); - if(err.is_error<err::not_found>()){ + if(err.is_type<err::not_found>()){ size_t new_index = infos.size(); if(new_index == std::numeric_limits<error::code>::max()){ return make_error<err::out_of_memory>("Error registry ids are exhausted"); |