You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@manifoldcf.apache.org by kw...@apache.org on 2011/08/31 14:08:02 UTC

svn commit: r1163591 - /incubator/lcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobQueue.java

Author: kwright
Date: Wed Aug 31 12:08:02 2011
New Revision: 1163591

URL: http://svn.apache.org/viewvc?rev=1163591&view=rev
Log:
Add enough info to error message to give a hint as to what state the record is actually in.  Part of ticket CONNECTORS-246.

Modified:
    incubator/lcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobQueue.java

Modified: incubator/lcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobQueue.java
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobQueue.java?rev=1163591&r1=1163590&r2=1163591&view=diff
==============================================================================
--- incubator/lcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobQueue.java (original)
+++ incubator/lcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/jobs/JobQueue.java Wed Aug 31 12:08:02 2011
@@ -630,7 +630,7 @@ public class JobQueue extends org.apache
       checkTimeValue = new Long(0L);
       break;
     default:
-      throw new ManifoldCFException("Unexpected jobqueue status - record id "+recID.toString()+", expecting active status");
+      throw new ManifoldCFException("Unexpected jobqueue status - record id "+recID.toString()+", expecting active status, saw "+Integer.toString(currentStatus));
     }
 
     HashMap map = new HashMap();