mirror of
https://github.com/ViaVersion/ViaProxy.git
synced 2024-11-14 19:15:08 -05:00
Print failed CWDs
This commit is contained in:
parent
5b39c5d0e0
commit
5a0305a09b
1 changed files with 6 additions and 1 deletions
|
@ -137,7 +137,12 @@ public class ViaProxy {
|
|||
JOptionPane.showMessageDialog(null, "Could not find a suitable directory to use as working directory. Make sure that the current folder is writeable.", "ViaProxy", JOptionPane.ERROR_MESSAGE);
|
||||
System.exit(1);
|
||||
} else {
|
||||
throw new IllegalStateException("Could not find a suitable directory to use as working directory. Make sure that the current folder is writeable.");
|
||||
System.err.println("Could not find a suitable directory to use as working directory. Make sure that the current folder is writeable.");
|
||||
System.err.println("Attempted to use the following directories:");
|
||||
for (File failedCwd : failedCwds) {
|
||||
System.err.println("\t- " + failedCwd.getAbsolutePath());
|
||||
}
|
||||
System.exit(1);
|
||||
}
|
||||
|
||||
Logger.setup();
|
||||
|
|
Loading…
Reference in a new issue