From 85398a9410a3ab36786c1e436986309ee6163f2f Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Sun, 11 Jun 2023 20:20:52 +0200 Subject: c++, codec-json: Added struct to json encoding and fixed a buffer bug on the fly --- src/core/error.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/error.cpp') diff --git a/src/core/error.cpp b/src/core/error.cpp index 9520972..e777c84 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_type(); + return !this->is_type(); } bool error::is_critical() const { -- cgit v1.2.3