Skip to content

Commit

Permalink
graphics checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jagrosh committed Mar 26, 2017
1 parent eb6be6b commit 61c6203
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/main/java/me/jagrosh/jmusicbot/JMusicBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,15 @@ public static void main(String[] args){

if(!config.getNoGui())
{
GUI gui = new GUI(bot);
bot.setGUI(gui);
gui.init();
try {
GUI gui = new GUI(bot);
bot.setGUI(gui);
gui.init();
} catch(Exception e) {
SimpleLog.getLog("Startup").fatal("Could not start GUI. If you are "
+ "running on a server or in a location where you cannot display a "
+ "window, please run in nogui mode using the -nogui flag.");
}
}

// attempt to log in and start
Expand Down

0 comments on commit 61c6203

Please sign in to comment.