improved error-msgs if on type-mismatch
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1337 152afb58-edef-0310-8abb-c4023f1b3aa9svn/tags/lighttpd-1.4.12
parent
67079527f4
commit
e332dce9bf
|
@ -54,14 +54,14 @@ int config_insert_values_internal(server *srv, array *ca, const config_values_t
|
|||
array_insert_unique(cv[i].destination, (data_unset *)ds);
|
||||
} else {
|
||||
log_error_write(srv, __FILE__, __LINE__, "sssd",
|
||||
"the key of and array can only be a string or a integer, variable:",
|
||||
"the key of an array can only be a string or a integer, variable:",
|
||||
cv[i].key, "type:", da->value->data[j]->type);
|
||||
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
log_error_write(srv, __FILE__, __LINE__, "sss", "unexpected type for key: ", cv[i].key, "array of strings");
|
||||
log_error_write(srv, __FILE__, __LINE__, "ss", cv[i].key, "should have been a array of strings like ... = ( \"...\" )");
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
@ -72,7 +72,7 @@ int config_insert_values_internal(server *srv, array *ca, const config_values_t
|
|||
|
||||
buffer_copy_string_buffer(cv[i].destination, ds->value);
|
||||
} else {
|
||||
log_error_write(srv, __FILE__, __LINE__, "ssss", "unexpected type for key: ", cv[i].key, "(string)", "\"...\"");
|
||||
log_error_write(srv, __FILE__, __LINE__, "ssss", cv[i].key, "should have been a string like ... = \"...\"");
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ int config_insert_values_internal(server *srv, array *ca, const config_values_t
|
|||
case TYPE_STRING: {
|
||||
data_string *ds = (data_string *)du;
|
||||
|
||||
log_error_write(srv, __FILE__, __LINE__, "ssb", "get a string but expected a short:", cv[i].key, ds->value);
|
||||
log_error_write(srv, __FILE__, __LINE__, "ssb", "got a string but expected a short:", cv[i].key, ds->value);
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue