summaryrefslogtreecommitdiff
path: root/src/core/error.cpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2023-06-11 20:20:52 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2023-06-11 20:20:52 +0200
commit85398a9410a3ab36786c1e436986309ee6163f2f (patch)
tree7eb07905cdf63c8c1080219d0537baf1a75e5a71 /src/core/error.cpp
parentb84b576a221684a39ef12891bafd233ba6289b09 (diff)
c++, codec-json: Added struct to json encoding and fixed a buffer bug on
the fly
Diffstat (limited to 'src/core/error.cpp')
-rw-r--r--src/core/error.cpp2
1 files changed, 1 insertions, 1 deletions
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<err::no_error>();
+ return !this->is_type<err::no_error>();
}
bool error::is_critical() const {