mirror of
https://github.com/2OOP/pism.git
synced 2026-02-04 19:04:49 +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) {
|
public static void start(String backend, String ip, String port) {
|
||||||
new Server(ServerBackend.valueOf(backend.toUpperCase()), ip, port).start();
|
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