From 4253ebf243f09146227bb52ae294aaceb0a38d32 Mon Sep 17 00:00:00 2001 From: Patrick Niklaus Date: Tue, 8 Dec 2015 21:08:17 +0100 Subject: [PATCH] Fix inverted error message. --- plugins/match.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/match.hpp b/plugins/match.hpp index 85dd33e84..a3bcf256a 100644 --- a/plugins/match.hpp +++ b/plugins/match.hpp @@ -381,13 +381,13 @@ template class MapMatchingPlugin : public BasePlugin if (sub_matchings.empty()) { - json_result.values["status"] = 0; - json_result.values["status_message"] = "Found matchings."; + json_result.values["status"] = 207; + json_result.values["status_message"] = "Cannot find matchings."; } else { - json_result.values["status"] = 207; - json_result.values["status_message"] = "Cannot find matchings."; + json_result.values["status"] = 0; + json_result.values["status_message"] = "Found matchings."; } return 200;