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/bedDetail.c src/hg/lib/bedDetail.c
index d1d7da0..c40434f 100644
--- src/hg/lib/bedDetail.c
+++ src/hg/lib/bedDetail.c
@@ -408,27 +408,23 @@
                     "not absolute.  Try subtracting chromStart from each offset "
                     "in chromStarts.");
             else
                 lineFileAbort(lf,
                     "BED chromStarts[i]+chromStart must be less than chromEnd.");
             }
         }
     if (item->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.", item->chromStarts[0]);
     i = item->blockCount-1;
     if ((item->chromStart + item->chromStarts[i] + item->blockSizes[i]) !=
         item->chromEnd)
-        {
-        lineFileAbort(lf,
-            "BED blocks must span chromStart to chromEnd.  (chromStart + "
-            "chromStarts[last] + blockSizes[last]) must equal chromEnd.");
-        }
+	lineFileAbort(lf, BAD_BLOCKS);
     }
     /* these 2 should not be null (maybe empty string), but always last 2 */
     item->id = cloneString(row[size-2]);
     item->description = cloneString(row[size-1]);
 return item;
 }