]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Improve the lockfile error message gazby/lockfile-message-update
authorGary Moon <gary@garymoon.net>
Sun, 8 Aug 2021 20:20:51 +0000 (16:20 -0400)
committerGary Moon <gary@garymoon.net>
Sun, 8 Aug 2021 20:20:51 +0000 (16:20 -0400)
host.c

diff --git a/host.c b/host.c
index aa8fb4c32bf9d712113f2bce98d71ec6d06f77e9..2be42d2866d3e5aa6310b258a8b59046d10ed9f5 100644 (file)
--- 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);
                        }
                }
        }