c59971839b9baa4b99e670239fab8650517b10b9
max
Fri Jan 25 09:17:17 2019 -0800
I think we can expose the command that failed, for mirrors this helps a bit, refs #22833
diff --git src/hg/hgc/barChartClick.c src/hg/hgc/barChartClick.c
index a022159..ae85ee4 100644
--- src/hg/hgc/barChartClick.c
+++ src/hg/hgc/barChartClick.c
@@ -351,31 +351,31 @@
static void printBoxplot(char *df, char *item, char *name2, char *units, char *colorFile)
/* Plot data frame to image file and include in HTML */
{
struct tempName pngTn;
struct dyString *cmd = dyStringNew(0);
trashDirFile(&pngTn, "hgc", "barChart", ".png");
/* Exec R in quiet mode, without reading/saving environment or workspace */
dyStringPrintf(cmd, "Rscript --vanilla --slave hgcData/barChartBoxplot.R %s '%s' %s %s %s %s",
item, units, colorFile, df, pngTn.forHtml, isEmpty(name2) ? "n/a" : name2);
int ret = system(cmd->string);
if (ret == 0)
printf("
\n", pngTn.forHtml);
else
- warn("Error creating boxplot from sample data");
+ warn("Error creating boxplot from sample data with command: %s", cmd->string);
}
struct asColumn *asFindColByIx(struct asObject *as, int ix)
/* Find AS column by index */
{
struct asColumn *asCol;
int i;
for (i=0, asCol = as->columnList; asCol != NULL && inext, i++);
return asCol;
}
void doBarChartDetails(struct trackDb *tdb, char *item)
/* Details of barChart item */
{
int start = cartInt(cart, "o");