From 727660fd4936919102c3a8b3a195df3b4e871290 Mon Sep 17 00:00:00 2001 From: sdburns1998 Date: Mon, 8 Jul 2019 17:28:46 +0200 Subject: [PATCH] rs: Move this catch to its own catch --- .../net/runelite/client/rs/ClientLoader.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/runelite-client/src/main/java/net/runelite/client/rs/ClientLoader.java b/runelite-client/src/main/java/net/runelite/client/rs/ClientLoader.java index 9a660fe58d..e39b76716d 100644 --- a/runelite-client/src/main/java/net/runelite/client/rs/ClientLoader.java +++ b/runelite-client/src/main/java/net/runelite/client/rs/ClientLoader.java @@ -69,14 +69,16 @@ public class ClientLoader return null; } } - catch (IOException | ClassNotFoundException | InstantiationException | IllegalAccessException e) + catch (IOException | InstantiationException | IllegalAccessException e) { - if (e instanceof ClassNotFoundException) - { - log.error("Unable to load client - class not found. This means you" - + " are not running RuneLite with Maven as the injected client" - + " is not in your classpath."); - } + log.error("Error loading RS!", e); + return null; + } + catch (ClassNotFoundException e) + { + log.error("Unable to load client - class not found. This means you" + + " are not running RuneLite with Maven as the injected client" + + " is not in your classpath."); log.error("Error loading RS!", e); return null;