Catch JDA exception when there is no internet connection
This commit is contained in:
1 parent
bbed9e8990
commit
c4cbfe2a11
1 file changed
+6
@@ -200,5 +200,11 @@ public class JMusicBot
|
||||
+ "invalid: " + ex + "\nConfig Location: " + config.getConfigLocation());
|
||||
System.exit(1);
|
||||
}
|
||||
catch(ErrorResponseException ex)
|
||||
{
|
||||
prompt.alert(Prompt.Level.ERROR, "JMusicBot", ex + "\n Invalid reponse returned when "
|
||||
+ "attempting to connect, please make sure you're connected to the internet");
|
||||
System.exit(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user