From aa84c4dc7e0469aeb13e33138de49b13751e0cc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Mon, 20 Jan 2020 13:04:05 +0200 Subject: [PATCH] MXS-2821: Improve REST API errors The error message now states what the real reason of the error was. --- server/core/config_runtime.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/core/config_runtime.cc b/server/core/config_runtime.cc index d3ed6ee74..542dceb1a 100644 --- a/server/core/config_runtime.cc +++ b/server/core/config_runtime.cc @@ -2391,7 +2391,7 @@ bool object_to_server_relations(const char* target, json_t* old_json, json_t* ne } else { - config_runtime_error("Invalid object relations for '%s'", target); + config_runtime_error("Could not find all servers that '%s' relates to", target); } return rval; @@ -2422,7 +2422,7 @@ bool service_to_filter_relations(Service* service, json_t* old_json, json_t* new } else { - config_runtime_error("Invalid object relations for '%s'", service->name()); + config_runtime_error("Could not find all filters that '%s' relates to", service->name()); } return rval;