From 866418f298ee12e22dac0e154d44643449a09143 Mon Sep 17 00:00:00 2001 From: Gary Moon Date: Sun, 8 Aug 2021 16:20:51 -0400 Subject: [PATCH] Improve the lockfile error message --- host.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } } } -- 2.39.2