8e566fe74dab83fee7b705d1084871094065c68d
hiram
  Tue Jun 28 13:36:01 2016 -0700
add print out of host name in error message about versioned js/style files no redmine

diff --git src/hg/lib/web.c src/hg/lib/web.c
index 3a66aea..df6840c 100644
--- src/hg/lib/web.c
+++ src/hg/lib/web.c
@@ -1135,48 +1135,50 @@
 // or kent/src/hg/htdocs/style).
 {
 char baseName[PATH_LEN];
 char extension[FILEEXT_LEN];
 splitPath(fileName, NULL, baseName, extension);
 boolean js = sameString(".js",extension);
 boolean style = !js && sameString(".css",extension);
 boolean image = !js
              && !style
              && (  sameString(".png",extension)
                 || sameString(".jpg",extension)
                 || sameString(".gif",extension));
 if (!js && !style) // && !image) NOTE: This code has not been tested on images but should work.
     errAbort("webTimeStampedLinkToResource: unknown resource type for %s.\n", fileName);
 
+char *httpHost = hHttpHost();
+
 // Build and verify directory
 char *dirName = "";
 if (js)
     dirName = cfgOptionDefault("browser.javaScriptDir", "js");
 else if (style)
     dirName = cfgOptionDefault("browser.styleDir","style");
 else if (image)
     dirName = cfgOptionDefault("browser.styleImagesDir","style/images");
 struct dyString *fullDirName = NULL;
 char *docRoot = hDocumentRoot();
 if (docRoot != NULL)
     fullDirName = dyStringCreate("%s/%s", docRoot, dirName);
 else
     // tolerate missing docRoot (i.e. when running from command line)
     fullDirName = dyStringCreate("%s", dirName);
 if (!fileExists(dyStringContents(fullDirName)))
-    errAbort("webTimeStampedLinkToResource: dir: %s doesn't exist.\n",
-             dyStringContents(fullDirName));
+    errAbort("webTimeStampedLinkToResource: dir: %s doesn't exist. (host: %s)\n",
+             dyStringContents(fullDirName), httpHost);
 
 // build and verify real path to file
 struct dyString *realFileName = dyStringCreate("%s/%s", dyStringContents(fullDirName), fileName);
 if (!fileExists(dyStringContents(realFileName)))
     errAbort("webTimeStampedLinkToResource: file: %s doesn't exist.\n",
              dyStringContents(realFileName));
 
 // build and verify link path including timestamp in the form of dir/baseName + timeStamp or CGI Version + ext
 long mtime = fileModTime(dyStringContents(realFileName));
 struct dyString *linkWithTimestamp;
 
 char *scriptName = cgiScriptName();
 if (scriptName == NULL)
     scriptName = cloneString("");
 boolean nonVersionedLinks = FALSE;