5b207e2b6401af927d5c91ac1366b3212d54f427 max Fri Mar 22 08:02:46 2024 -0700 improving hgcentral down error message, suggestion by Lou diff --git src/hg/lib/jksql.c src/hg/lib/jksql.c index e9c9cd6..3fc4d07 100644 --- src/hg/lib/jksql.c +++ src/hg/lib/jksql.c @@ -1152,34 +1152,35 @@ if (mysql_real_connect( conn, sp->host, /* host */ sp->user, /* user name */ sp->password, /* password */ database, /* database */ sp->port, /* port */ sp->socket, /* socket */ 0) /* flags */ == NULL) { monitorLeave(); monitorEnterTime = oldTime; char *extraMsg = ""; if (sqlIsUcscServer()) - extraMsg = "We hate this error more than any other and may be already looking into it. You can help us by telling us " - "about it, " - "the email is genome-www@soe.ucsc.edu. We will fix it ASAP. " - "And even if this server is failing right now, usually, one of our other three " + extraMsg = "We hate this error more than any other and may be already looking into it.<br> " + "If there is no message on https://twitter.com/GenomeBrowser with the time when we expect it to be back: " + "You can help us by telling us about the error, " + "our email is genome-www@soe.ucsc.edu. We will fix it ASAP.<br> " + "And even if this server is failing for a few more hours today, usually, one of our other three " "international mirrors is still " "working. The three mirrors are genome.ucsc.edu (US), genome-euro.ucsc.edu (Germany), genome-asia.ucsc.edu " "(Japan). You may not find your custom tracks and saved sessions there, but using another mirror should allow " "continuing your work while we are fixing the problem. "; if (abort) errAbort("Couldn't connect to database %s on %s as %s.\n%s\n%s", database, sp->host, sp->user, mysql_error(conn), extraMsg); else if (sqlParanoid) fprintf(stderr, "Couldn't connect to database %s on %s as %s. " "mysql: %s pid=%ld\n", database, sp->host, sp->user, mysql_error(conn), (long)getpid()); return NULL; }