rs: Move this catch to its own catch

This commit is contained in:
sdburns1998
2019-07-08 17:28:46 +02:00
parent 31df0c4552
commit 727660fd49

View File

@@ -69,14 +69,16 @@ public class ClientLoader
return null; return null;
} }
} }
catch (IOException | ClassNotFoundException | InstantiationException | IllegalAccessException e) catch (IOException | InstantiationException | IllegalAccessException e)
{ {
if (e instanceof ClassNotFoundException) log.error("Error loading RS!", e);
{ return null;
log.error("Unable to load client - class not found. This means you" }
+ " are not running RuneLite with Maven as the injected client" catch (ClassNotFoundException e)
+ " is not in your classpath."); {
} 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); log.error("Error loading RS!", e);
return null; return null;