Browse Source

improved warning-message

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@850 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.8
Jan Kneschke 16 years ago
parent
commit
0c6af9ae46
  1. 8
      src/connections.c

8
src/connections.c

@ -1343,8 +1343,12 @@ int connection_state_machine(server *srv, connection *con) {
/* error-handler is a 404 */
/* continue as normal, status is the same */
log_error_write(srv, __FILE__, __LINE__, "sb", "error-handler not found:", con->conf.error_handler);
log_error_write(srv, __FILE__, __LINE__, "sb",
"Warning: Either the error-handler returned status 404 or the error-handler itself was not found:", con->request.uri);
log_error_write(srv, __FILE__, __LINE__, "sd",
"returning the original status", con->error_handler_saved_status);
log_error_write(srv, __FILE__, __LINE__, "s",
"If this is a rails app: check your production.log");
con->http_status = con->error_handler_saved_status;
}
} else if (con->in_error_handler) {

Loading…
Cancel
Save