diff options
-rw-r--r-- | pacredir.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -425,7 +425,12 @@ static int ahc_echo(void * cls, struct MHD_Connection * connection, const char * ret = MHD_queue_response(connection, MHD_HTTP_TEMPORARY_REDIRECT, response); free(url); } else { - write_log(stdout, "File %s not found on %d servers, giving up.\n", basename, req_count + 1); + if (req_count < 0) + write_log(stdout, "Currently no servers are available to check for %s.\n", basename); + else if (dbfile == 1) + write_log(stdout, "No more recent version of %s found on %d servers.\n", basename, req_count + 1); + else + write_log(stdout, "File %s not found on %d servers, giving up.\n", basename, req_count + 1); page = malloc(strlen(PAGE404) + strlen(basename) + 1); sprintf(page, PAGE404, basename + 1); response = MHD_create_response_from_data(strlen(page), (void*) page, MHD_NO, MHD_NO); |