From 73fac05aa07a0dd16f7061baddd4b934c7855fed Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Sat, 10 Jun 2023 23:45:17 +0200 Subject: c++: Setting up testing progress --- src/core/error.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/core/error.cpp') 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(); + return this->is_type(); } bool error::is_critical() const { @@ -104,7 +104,7 @@ error_or error_registry::search_or_register_id(const std::string_vi auto& err = err_or_id.get_error(); - if(err.is_error()){ + if(err.is_type()){ size_t new_index = infos.size(); if(new_index == std::numeric_limits::max()){ return make_error("Error registry ids are exhausted"); -- cgit v1.2.3