Skip to content

Commit

Permalink
add error message for WSAEACCES
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam- committed Mar 15, 2024
1 parent 131d675 commit 4ef6ed7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/net/runelite/launcher/FatalErrorDialog.java
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,11 @@ public static void showNetErrorWindow(String action, Throwable err)
message += " Cannot assign requested address. This error is most commonly caused by \"split tunneling\" support in VPN software." +
" If you are using a VPN, try turning \"split tunneling\" off.";
}
// WSAEACCES error formatted by NET_ThrowNew()
else if (err.getMessage().equals("Permission denied: connect"))
{
message += " Your internet access is blocked. Firewall or antivirus software may have blocked the connection.";
}
else
{
message += " Please check your internet connection.";
Expand Down

0 comments on commit 4ef6ed7

Please sign in to comment.