summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjan <jan@152afb58-edef-0310-8abb-c4023f1b3aa9>2006-09-23 11:19:02 +0000
committerjan <jan@152afb58-edef-0310-8abb-c4023f1b3aa9>2006-09-23 11:19:02 +0000
commit46429248d65f3387712192368249a195e830ecd8 (patch)
tree31db85e6a9c0635247b35a3cf1609611cc6b5c9c
parentab875d1862a4d53edfd1b75e761ec15bbc8b767b (diff)
downloadlighttpd-46429248d65f3387712192368249a195e830ecd8.tar.gz
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-c4023f1b3aa9
-rw-r--r--src/configfile-glue.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/configfile-glue.c b/src/configfile-glue.c
index dd17ea43..5d1c8ece 100644
--- a/src/configfile-glue.c
+++ b/src/configfile-glue.c
@@ -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;
}