src/lib/bwgCreate.c 1.15

1.15 2009/08/27 03:57:12 kent
Making zero coordinate error message handle negative coords too.
Index: src/lib/bwgCreate.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/lib/bwgCreate.c,v
retrieving revision 1.14
retrieving revision 1.15
diff -b -B -U 4 -r1.14 -r1.15
--- src/lib/bwgCreate.c	27 Aug 2009 03:54:39 -0000	1.14
+++ src/lib/bwgCreate.c	27 Aug 2009 03:57:12 -0000	1.15
@@ -313,11 +313,11 @@
 	}
     chopLine(line, words);
     lmAllocVar(lmLocal, item);
     int start = lineFileNeedNum(lf, words, 0);
-    if (start == 0)
+    if (start <= 0)
 	{
-	errAbort("line %d of %s: zero chromosome coordinate not allowed",
+	errAbort("line %d of %s: zero or negative chromosome coordinate not allowed",
 	    lf->lineIx, lf->fileName);
 	}
     item->start = start - 1;
     item->val = lineFileNeedDouble(lf, words, 1);