2438b4e0f4dc26dfbef722eb65b3625173a26e41 braney Wed Feb 5 13:13:07 2020 -0800 Revert "allow trackDb variables to have an empty value, useful for filters" This reverts commit 8e3f3a01dbb1b2ac9d3c7fed4fb2840dcb6014f6. diff --git src/hg/lib/trackDbCustom.c src/hg/lib/trackDbCustom.c index e5f9f41..c220128 100644 --- src/hg/lib/trackDbCustom.c +++ src/hg/lib/trackDbCustom.c @@ -348,31 +348,31 @@ { /* Break at blank line or EOF. */ if (!lineFileNextFull(lf, &line, NULL, NULL, NULL)) // NOTE: joins continuation lines break; line = skipLeadingSpaces(line); if (line == NULL || line[0] == 0) break; /* Skip comments. */ if (line[0] == '#') continue; /* Parse out first word and decide what to do. */ word = nextWord(&line); if (line == NULL) - line = ""; + errAbort("No value for %s line %d of %s", word, lf->lineIx, lf->fileName); line = trimSpaces(line); trackDbUpdateOldTag(&word, &line); if (releaseTag && sameString(word, "release")) { if (differentString(releaseTag, line)) errAbort("Release tag %s in stanza with include override %s, line %d of %s", line, releaseTag, lf->lineIx, lf->fileName); } else trackDbAddInfo(bt, word, line, lf); } if (releaseTag) trackDbAddRelease(bt, releaseTag); } slReverse(&btList);