mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
fix error code on xml_return_error
This commit is contained in:
parent
177a808624
commit
cb9598608b
@ -116,6 +116,8 @@ static CONF_ELEMENTS conf_elements[] = {
|
||||
{ 0, 0, CONF_T_STRING,"general","logfile" },
|
||||
{ 0, 0, CONF_T_EXISTPATH,"plugins","plugin_dir" },
|
||||
{ 0, 0, CONF_T_MULTICOMMA,"plugins","plugins" },
|
||||
{ 0, 0, CONF_T_INT,"daap","empty_strings" },
|
||||
{ 0, 0, CONF_T_INT,"daap","supports_browse" },
|
||||
{ 0, 0, CONF_T_INT, NULL, NULL }
|
||||
};
|
||||
|
||||
|
@ -60,7 +60,7 @@ void xml_return_error(WS_CONNINFO *pwsc, int err, char *errstr) {
|
||||
pxml=xml_init(pwsc,TRUE);
|
||||
xml_push(pxml,"results");
|
||||
|
||||
xml_output(pxml,"status","%d",errno);
|
||||
xml_output(pxml,"status","%d",err);
|
||||
xml_output(pxml,"statusstring","%s",errstr);
|
||||
|
||||
xml_pop(pxml); /* results */
|
||||
@ -157,7 +157,6 @@ void xml_set_config(WS_CONNINFO *pwsc) {
|
||||
verify_only = 1;
|
||||
}
|
||||
|
||||
|
||||
if((!section) || (!key) || (!value)) {
|
||||
xml_return_error(pwsc,500,"Missing section, key, or value");
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user