From af6517900e8871a6f185e96671b3140b940f3548 Mon Sep 17 00:00:00 2001
From: Micah Cowan <micah@cowan.name>
Date: Mon, 11 Feb 2008 14:55:25 -0800
Subject: [PATCH] Better messages for --spider without -r.

---
 src/ChangeLog |  5 +++++
 src/http.c    | 13 +++++++++++--
 2 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/src/ChangeLog b/src/ChangeLog
index dedc7967..c78ee268 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2008-02-11  Benno Schulenberg  <bensberg@justemail.net>
+
+	* http.c: More accurate and descriptive messages for when a file
+	won't be retrieved during spider-mode.
+
 2008-02-10  Micah Cowan  <micah@cowan.name>
 
 	* http.c: Added existence_checked member to the http_stat
diff --git a/src/http.c b/src/http.c
index 6cc46616..ec815c8f 100644
--- a/src/http.c
+++ b/src/http.c
@@ -2673,8 +2673,17 @@ Remote file exists but does not contain any link -- not retrieving.\n\n"));
                     }
                   else
                     {
-                      logprintf (LOG_VERBOSE, _("\
-Remote file exists but recursion is disabled -- not retrieving.\n\n"));
+                      if (*dt & TEXTHTML)
+                        {
+                          logprintf (LOG_VERBOSE, _("\
+Remote file exists and could contain further links,\n\
+but recursion is disabled -- not retrieving.\n\n"));
+                        }
+                      else 
+                        {
+                          logprintf (LOG_VERBOSE, _("\
+Remote file exists.\n\n"));
+                        }
                       ret = RETROK; /* RETRUNNEEDED is not for caller. */
                       goto exit;
                     }