MXS-2821: Improve REST API errors

The error message now states what the real reason of the error was.
This commit is contained in:
Markus Mäkelä 2020-01-20 13:04:05 +02:00
parent f039d1b42d
commit aa84c4dc7e
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -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;