3b80c5be2a2d43f71277f8cd9274e3c49d9ad6c2 angie Mon Feb 24 16:54:33 2014 -0800 Improved error messages for bigData custom track common mistakes likemissing bigDataUrl setting or trying to upload a bigData file instead of making a track line with a public URL. I added a new "factory" to customFactory.c that produces no tracks, only error messages about directly uploaded bigData files. refs #12747 diff --git src/hg/lib/customPp.c src/hg/lib/customPp.c index d87e36e..112fc2d 100644 --- src/hg/lib/customPp.c +++ src/hg/lib/customPp.c @@ -122,15 +122,24 @@ void customPpReuse(struct customPp *cpp, char *line) /* Reuse line. May be called many times before next customPpNext/NextReal. * Should be called with last line to be reused first if called multiply. */ { struct slName *s = slNameNew(line); slAddHead(&cpp->reusedLines, s); } struct slName *customPpTakeBrowserLines(struct customPp *cpp) /* Grab browser lines from cpp, which will no longer have them. */ { struct slName *browserLines = cpp->browserLines; cpp->browserLines = NULL; return browserLines; } + +char *customPpFileName(struct customPp *cpp) +/* Return the name of the current file being parsed (top of fileStack), or NULL + * if fileStack is NULL. Free when done. */ +{ +if (cpp->fileStack == NULL) + return NULL; +return cloneString(cpp->fileStack->fileName); +}