The new diagnostic 'no service' is returned if a service can not
be found (whether unnamed or given during init).
{ PAZPAR2_CONFIG_TARGET, "Target cannot be configured"},
{ PAZPAR2_RECORD_FAIL, "Record command failed"},
{ PAZPAR2_NOT_IMPLEMENTED, "Not implemented"},
{ PAZPAR2_CONFIG_TARGET, "Target cannot be configured"},
{ PAZPAR2_RECORD_FAIL, "Record command failed"},
{ PAZPAR2_NOT_IMPLEMENTED, "Not implemented"},
+ { PAZPAR2_NO_SERVICE, "No service"},
{ PAZPAR2_LAST_ERROR, "Last error"},
{ 0, 0 }
};
{ PAZPAR2_LAST_ERROR, "Last error"},
{ 0, 0 }
};
service = locate_service(c->server, service_name);
if (!service)
{
service = locate_service(c->server, service_name);
if (!service)
{
- error(rs, PAZPAR2_MALFORMED_PARAMETER_VALUE, "service");
+ error(rs, PAZPAR2_NO_SERVICE, service_name ? service_name : "unnamed");
return;
}
service_incref(service);
return;
}
service_incref(service);
PAZPAR2_CONFIG_TARGET,
PAZPAR2_RECORD_FAIL,
PAZPAR2_NOT_IMPLEMENTED,
PAZPAR2_CONFIG_TARGET,
PAZPAR2_RECORD_FAIL,
PAZPAR2_NOT_IMPLEMENTED,