67ab751705ed1abbbce914adb0fd295b5a41127d galt Fri Aug 15 12:36:59 2014 -0700 tiny improvement in error message diff --git src/hg/hgTables/genomeSpace.c src/hg/hgTables/genomeSpace.c index d17534c..999558e 100644 --- src/hg/hgTables/genomeSpace.c +++ src/hg/hgTables/genomeSpace.c @@ -85,31 +85,31 @@ printf("</form>"); printf("<tr><td> </td><td><FORM ACTION=\"/cgi-bin/hgTables\" METHOD=GET>" "<INPUT TYPE=SUBMIT NAME=\"%s\" VALUE=\"Cancel\" ></FORM></td></tr>", hgtaDoMainPage); printf("</table>"); htmlClose(); } static char *parseResponse(int sd, char **pResponseCode) /* parse the http response */ { struct dyString *dy = netSlurpFile(sd); close(sd); char *protocol = "HTTP/1.1 "; if (!startsWith(protocol, dy->string)) - errAbort("GenomeSpace: Expected HTTP/1.1 response: found %s", dy->string); + errAbort("GenomeSpace: Expected response to start with [%s], got [%s]", protocol, dy->string); if (pResponseCode) { char *rc = dy->string + strlen(protocol); char *rcEndString = "\r\n"; char *rcEnd = strstr(dy->string, rcEndString); *pResponseCode = cloneStringZ(rc, rcEnd - rc); } char *headerEndString = "\r\n\r\n"; char *headerEnd = strstr(dy->string, headerEndString); if (!headerEnd) errAbort("header end not found in response"); char *gsResponse = cloneString(headerEnd+strlen(headerEndString));