fefdc562bc014756f3c22f53dce16126ada37b56
hiram
  Wed Sep 8 11:09:33 2021 -0700
update bad blocks message to read as documentation refs #28131

diff --git src/hg/lib/customFactory.c src/hg/lib/customFactory.c
index c33e91d..1504712 100644
--- src/hg/lib/customFactory.c
+++ src/hg/lib/customFactory.c
@@ -569,35 +569,31 @@
 		    "not absolute.  Try subtracting chromStart from each offset "
 		    "in chromStarts.");
 	    else
 		lineFileAbort(lf,
 		    "BED chromStarts[i]+chromStart must be less than chromEnd.");
 	    }
 	}
     if (bed->chromStarts[0] != 0)
 	lineFileAbort(lf,
 	    "BED blocks must span chromStart to chromEnd.  "
 	    "BED chromStarts[0] must be 0 (==%d) so that (chromStart + "
 	    "chromStarts[0]) equals chromStart.", bed->chromStarts[0]);
     i = bed->blockCount-1;
     if ((bed->chromStart + bed->chromStarts[i] + bed->blockSizes[i]) !=
 	bed->chromEnd)
-	{
-	lineFileAbort(lf,
-	    "BED blocks must span chromStart to chromEnd.  (chromStart + "
-	    "chromStarts[last] + blockSizes[last]) must equal chromEnd.");
-	}
+	lineFileAbort(lf, BAD_BLOCKS);
     }
 if (wordCount > 12)
     // get the microarray/colored-exon fields
     {
     bed->expCount = (int)sqlUnsigned(row[12]);
     sqlSignedDynamicArray(row[13], &bed->expIds, &count);
     if (count != bed->expCount)
 	lineFileAbort(lf, "expecting %d elements in expIds array (bed field 14)",
 		      bed->expCount);
     if (wordCount == 15)
 	{
 	sqlFloatDynamicArray(row[14], &bed->expScores, &count);
 	if (count != bed->expCount)
 	    lineFileAbort(lf, "expecting %d elements in expScores array (bed field 15)",
 			  bed->expCount);