From 0fb0142ccf518fc46111430f9e0518f43aa1ece7 Mon Sep 17 00:00:00 2001 From: Hugo Ledoux Date: Tue, 13 Aug 2024 13:38:13 +0200 Subject: [PATCH] Fix bug in report, the old `"type": "Error"` is no more in use thanks @lkeurentjes --- src/Feature.cpp | 1 - src/GeometryTemplate.cpp | 1 - src/input.cpp | 1 - 3 files changed, 3 deletions(-) diff --git a/src/Feature.cpp b/src/Feature.cpp index 0763515..78fa748 100644 --- a/src/Feature.cpp +++ b/src/Feature.cpp @@ -75,7 +75,6 @@ json Feature::get_report_json() for (auto& e : _errors[std::get<0>(err)]) { json jj; - jj["type"] = "Error"; jj["code"] = std::get<0>(err); jj["description"] = ALL_ERRORS[std::get<0>(err)]; jj["id"] = std::get<0>(e); diff --git a/src/GeometryTemplate.cpp b/src/GeometryTemplate.cpp index 86edbfe..aae14aa 100644 --- a/src/GeometryTemplate.cpp +++ b/src/GeometryTemplate.cpp @@ -91,7 +91,6 @@ std::vector GeometryTemplate::get_errors() for (auto& e : _errors[std::get<0>(err)]) { json jj; - jj["type"] = "Error"; jj["code"] = std::get<0>(err); jj["description"] = ALL_ERRORS[std::get<0>(err)]; jj["id"] = std::get<0>(e); diff --git a/src/input.cpp b/src/input.cpp index 6bfb6e4..f6cfc9e 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -110,7 +110,6 @@ json IOErrors::get_report_json() for (auto i : err.second) { json jj; - jj["type"] = "Error"; jj["code"] = err.first; jj["description"] = ALL_ERRORS[err.first]; jj["info"] = i;