Apache Nutch is an extensible and scalable web crawler
NUTCH-1829 Generator : unable to distinguish real errors (Mathieu Bouchard via jnioche)
Julien Nioche71733df83d70
diff --git a/CHANGES.txt b/CHANGES.txtindex 5dab0f6a8..9d4a19f0e 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -1,6 +1,8 @@Nutch Change LogNutch Current Development++* NUTCH-1829 Generator : unable to distinguish real errors (Mathieu Bouchard via jnioche)* NUTCH-1835 Nutch's Solr schema doesn't work with Solr 4.9 because of the RealTimeGet handler (mattmann)diff --git a/src/java/org/apache/nutch/crawl/Generator.java b/src/java/org/apache/nutch/crawl/Generator.javaindex 5be2d359f..3cc45c685 100644--- a/src/java/org/apache/nutch/crawl/Generator.java+++ b/src/java/org/apache/nutch/crawl/Generator.java@@ -708,7 +708,7 @@ public class Generator extends Configured implements Tool {try {Path[] segs = generate(dbDir, segmentsDir, numFetchers, topN, curTime, filter,norm, force, maxNumSegments);- if (segs == null) return -1;+ if (segs == null) return 1;} catch (Exception e) {LOG.error("Generator: " + StringUtils.stringifyException(e));return -1;