summaryrefslogtreecommitdiff
path: root/tools/obj2yaml/Error.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/obj2yaml/Error.cpp')
-rw-r--r--tools/obj2yaml/Error.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/obj2yaml/Error.cpp b/tools/obj2yaml/Error.cpp
index 7be468dd56..0003b7bb8d 100644
--- a/tools/obj2yaml/Error.cpp
+++ b/tools/obj2yaml/Error.cpp
@@ -42,7 +42,7 @@ std::string _obj2yaml_error_category::message(int ev) const {
error_condition
_obj2yaml_error_category::default_error_condition(int ev) const {
if (ev == obj2yaml_error::success)
- return errc::success;
+ return error_condition();
return errc::invalid_argument;
}