mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 10:54:51 +00:00
Catch wrong backend exception.
This commit is contained in:
@@ -178,7 +178,11 @@ public class Server extends Thread {
|
||||
}
|
||||
|
||||
public static void start(String backend, String ip, String port) {
|
||||
try {
|
||||
new Server(ServerBackend.valueOf(backend.toUpperCase()), ip, port).start();
|
||||
} catch (IllegalArgumentException e) {
|
||||
new Server(ServerBackend.LOCAL, ip, port).start();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user