Print failed CWDs

This commit is contained in:
RaphiMC 2024-07-05 20:22:46 +02:00
parent 5b39c5d0e0
commit 5a0305a09b
No known key found for this signature in database
GPG key ID: 0F6BB0657A03AC94

View file

@ -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();