From: Gary Moon Date: Sun, 8 Aug 2021 20:20:51 +0000 (-0400) Subject: Improve the lockfile error message X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=866418f298ee12e22dac0e154d44643449a09143;p=xonotic%2Fdarkplaces.git Improve the lockfile error message --- diff --git a/host.c b/host.c index aa8fb4c3..2be42d28 100644 --- a/host.c +++ b/host.c @@ -333,11 +333,12 @@ void Host_LockSession(void) { if(locksession.integer == 2) { - Con_Printf(CON_WARN "WARNING: session lock %s could not be acquired. Please run with -sessionid and an unique session name. Continuing anyway.\n", p); + Con_Printf(CON_WARN "WARNING: Session lock %s could not be acquired. Please run with -sessionid and a unique session name. Continuing anyway.\n", p); } else { - Sys_Error("session lock %s could not be acquired. Please run with -sessionid and an unique session name.\n", p); + Sys_Error("Session lock could not be acquired. Is there already a running instance? If not, remove the file '%s' and try again.\n" + "Note: Please run with -sessionid and a unique session name if you intend to run multiple copies.\n", p); } } }