From d8b9db60c816e5c57f95f18be7f9ace6add956cf Mon Sep 17 00:00:00 2001 From: shootergamer234 <42981380+shootergamer234@users.noreply.github.com> Date: Thu, 2 Jan 2025 07:57:09 +0100 Subject: [PATCH] Added error message after FileNotFoundException It seems that with Java 22 on Windows IPCPipes can't be accessed like before. This error message is important so the user knows why DiscordIPC is not working. --- .../java/com/jagrosh/discordipc/entities/pipe/WindowsPipe.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/jagrosh/discordipc/entities/pipe/WindowsPipe.java b/src/main/java/com/jagrosh/discordipc/entities/pipe/WindowsPipe.java index c1e9ce2..e258926 100644 --- a/src/main/java/com/jagrosh/discordipc/entities/pipe/WindowsPipe.java +++ b/src/main/java/com/jagrosh/discordipc/entities/pipe/WindowsPipe.java @@ -42,6 +42,7 @@ public class WindowsPipe extends Pipe try { this.file = new RandomAccessFile(location, "rw"); } catch (FileNotFoundException e) { + LOGGER.error("Couldn't open IPCPipe. If you are using Java 22 or higher you might need to choose a lower version than Java 22.") throw new RuntimeException(e); } }