Index: src/db.c ================================================================== --- src/db.c +++ src/db.c @@ -63,10 +63,14 @@ ** Call this routine when a database error occurs. */ static void db_err(const char *zFormat, ...){ va_list ap; char *z; + static const char zRebuildMsg[] = + "If you have recently updated your fossil executable, you might\n" + "need to run \"fossil all rebuild\" to bring the repository\n" + "schemas up to date.\n"; va_start(ap, zFormat); z = vmprintf(zFormat, ap); va_end(ap); if( g.xferPanic ){ cgi_reset_content(); @@ -74,14 +78,14 @@ cgi_reply(); } if( g.cgiPanic ){ g.cgiPanic = 0; cgi_printf("
%h", z); + "
%h
%s
", z, zRebuildMsg); cgi_reply(); }else{ - fprintf(stderr, "%s: %s\n", g.argv[0], z); + fprintf(stderr, "%s: %s\n\n%s", g.argv[0], z, zRebuildMsg); } db_force_rollback(); exit(1); }