diff options
author | Jan Kneschke <jan@kneschke.de> | 2005-11-26 12:47:09 +0000 |
---|---|---|
committer | Jan Kneschke <jan@kneschke.de> | 2005-11-26 12:47:09 +0000 |
commit | a3aed7dfda144366fe51184264e9a4554ad5c62e (patch) | |
tree | c40498675e4c3501caa90cc4f82d82c53a3ea5c7 | |
parent | 28b9c992a52b62323a9d3477514876a42aabd011 (diff) | |
download | lighttpd-git-a3aed7dfda144366fe51184264e9a4554ad5c62e.tar.gz |
improved the error-msgs
git-svn-id: svn+ssh://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@882 152afb58-edef-0310-8abb-c4023f1b3aa9
-rw-r--r-- | src/http_auth.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/http_auth.c b/src/http_auth.c index 478a2f77..9976c155 100644 --- a/src/http_auth.c +++ b/src/http_auth.c @@ -350,19 +350,25 @@ static int http_auth_match_rules(server *srv, mod_auth_plugin_data *p, const cha /* from r to r + r_len is a rule */ if (0 == strncmp(r, "valid-user", r_len)) { - log_error_write(srv, __FILE__, __LINE__, "s", "valid-user cannot be combined with other require rules"); + log_error_write(srv, __FILE__, __LINE__, "sb", + "parsing the 'require' section in 'auth.require' failed: valid-user cannot be combined with other require rules", + require->value); return -1; } /* search for = in the rules */ if (NULL == (eq = strchr(r, '='))) { - log_error_write(srv, __FILE__, __LINE__, "s", "= is missing"); + log_error_write(srv, __FILE__, __LINE__, "sb", + "parsing the 'require' section in 'auth.require' failed: a = is missing", + require->value); return -1; } /* = out of range */ if (eq > r + r_len) { - log_error_write(srv, __FILE__, __LINE__, "s", "= out of range"); + log_error_write(srv, __FILE__, __LINE__, "sb", + "parsing the 'require' section in 'auth.require' failed: = out of range", + require->value); return -1; } |