ee9a6c5c63eba2d963a5d7581185b1004fffe964
angie
  Mon Apr 15 14:06:10 2013 -0700
Added indentifying name to annoStreamer for output header info and better error messages. refs #6152
diff --git src/lib/annoFormatTab.c src/lib/annoFormatTab.c
index bceb981..3bfc87d 100644
--- src/lib/annoFormatTab.c
+++ src/lib/annoFormatTab.c
@@ -104,31 +104,32 @@
 boolean freeWhenDone = FALSE;
 char **words = NULL;
 if (source->rowType == arWords || source->rowType == arVcf)
     words = row->data;
 else if (source->rowType == arWig)
     {
     freeWhenDone = TRUE;
     //#*** config options: avg? more stats? list of values?
     boolean doAvg = FALSE;
     if (doAvg)
 	words = wordsFromWigRowAvg(row);
     else
 	words = wordsFromWigRowVals(row);
     }
 else
-    errAbort("annoFormatTab: unrecognized row type %d", source->rowType);
+    errAbort("annoFormatTab: unrecognized row type %d from source %s",
+	     source->rowType, source->name);
 if (retFreeWhenDone != NULL)
     *retFreeWhenDone = freeWhenDone;
 return words;
 }
 
 static void printColumns(FILE *f, struct annoStreamer *streamer, struct annoRow *row,
 			 boolean isFirst)
 /* Print columns in streamer's row (if NULL, print the right number of empty fields). */
 {
 boolean freeWhenDone = FALSE;
 char **words = wordsFromRow(row, streamer, &freeWhenDone);
 if (streamer->rowType == arWig)
     {
     // Fudge in the row's chrom, start, end as output columns even though they're not in autoSql
     if (isFirst)