Skip to content

Commit

Permalink
Supress config file not found error to create less confusion
Browse files Browse the repository at this point in the history
  • Loading branch information
Eirenliel committed Aug 22, 2021
1 parent 9383be6 commit a105879
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/io/eiren/vr/VRServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.InetAddress;
Expand Down Expand Up @@ -103,8 +104,8 @@ public TrackerConfig getTrackerConfig(Tracker tracker) {
private void loadConfig() {
try {
config.load(new FileInputStream(new File("vrconfig.yml")));
} catch(IOException e) {
e.printStackTrace();
} catch(FileNotFoundException e) {
// Config file didn't exist, is not an error
} catch(YamlException e) {
e.printStackTrace();
}
Expand Down

0 comments on commit a105879

Please sign in to comment.