Catch JDA exception when there is no internet connection
This commit is contained in:
@@ -200,5 +200,11 @@ public class JMusicBot
|
|||||||
+ "invalid: " + ex + "\nConfig Location: " + config.getConfigLocation());
|
+ "invalid: " + ex + "\nConfig Location: " + config.getConfigLocation());
|
||||||
System.exit(1);
|
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