Index: apachesolr.module
===================================================================
--- apachesolr.module	(revision 1423)
+++ apachesolr.module	(working copy)
@@ -335,6 +335,13 @@
       apachesolr_index_updated(time());
     }
     catch (Exception $e) {
+      if (isset($docs) && !empty($docs)) {
+        $nids = array();
+        foreach ($docs as $doc) {
+          $nids[] = $doc->nid;
+        }
+        watchdog('Apache Solr', 'Indexing failed on one of the following nodes: @nids', array('@nids' => implode(', ', $nids)));
+      }
       watchdog('Apache Solr', nl2br(check_plain($e->getMessage())), NULL, WATCHDOG_ERROR);
       return FALSE;
     }
