a13f7abae98ad53f44f0ad3836a29a4b84ef39e0
angie
  Wed Apr 5 14:04:41 2017 -0700
Add htmlClose() after position lookup failure so that jsInlineFinish is called and the warning message is displayed to the user.  fixes #19190

diff --git src/hg/hgTables/hgTables.c src/hg/hgTables/hgTables.c
index 148a94c..83e4e7e 100644
--- src/hg/hgTables/hgTables.c
+++ src/hg/hgTables/hgTables.c
@@ -1795,30 +1795,31 @@
     {
     if (cartUsualBoolean(cart, hgtaDoGreatOutput, FALSE))
 	doGetGreatOutput(dispatch);
     else
 	dispatch();
     }
 else
     {
     struct sqlConnection *conn = NULL;
     if (!trackHubDatabase(database))
 	conn = curTrack ? hAllocConnTrack(database, curTrack) : hAllocConn(database);
     webPushErrHandlersCartDb(cart, database);
     mainPageAfterOpen(conn);
     hFreeConn(&conn);
     webPopErrHandlers();
+    htmlClose();
     }
 
 textOutClose(&compressPipeline, &saveStdout);
 
 if (doGenomeSpace())
     {
     if (gsTemp)
 	{
 	cartSetString(cart, "gsTemp", gsTemp);
 	char *workUrl = NULL;
 	startBackgroundWork("./hgTables backgroundExec=gsSendToDM", &workUrl);
 
 	htmlOpen("Uploading Output to GenomeSpace");
 
 	jsInlineF(