282c37a5f6db8b7704e1d0f3617f55f38b8aea70
hiram
  Fri Apr 19 15:27:08 2019 -0700
more error testing for illegal inputs refs #18869

diff --git src/hg/hubApi/hubApi.c src/hg/hubApi/hubApi.c
index 5f7d454..6256949 100644
--- src/hg/hubApi/hubApi.c
+++ src/hg/hubApi/hubApi.c
@@ -1287,31 +1287,31 @@
 /*expect no more than MAX_PATH_INFO number of words*/
 char *words[MAX_PATH_INFO];
 
 if (isNotEmpty(pathInfo))
     {
     /* can immediately verify valid parameters right here right now */
     char *start = cgiOptionalString("start");
     char *end = cgiOptionalString("end");
     char *db = cgiOptionalString("db");
     struct dyString *errorMsg = newDyString(128);
 
     if (isNotEmpty(db))
 	{
 	struct sqlConnection *conn = hAllocConnMaybe(db);
         if (NULL == conn)
-	    dyStringPrintf(errorMsg, "can not find database db='%s'", db);
+	    dyStringPrintf(errorMsg, "can not find database db='%s' for endpoint '%s'", db, pathInfo);
 	else
 	    hFreeConn(&conn);
 	}
     if (isNotEmpty(start) || isNotEmpty(end))
 	{
 	long long llStart = -1;
 	long long llEnd = -1;
 	struct errCatch *errCatch = errCatchNew();
 	if (errCatchStart(errCatch))
 	    {
 	    if (isNotEmpty(start))
 		llStart = sqlLongLong(start);
 	    if (isNotEmpty(end))
 		llEnd = sqlLongLong(end);
 	    }