mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-03-19 05:12:28 -07:00
More descriptive address in use error
This commit is contained in:
parent
9f8f5a5279
commit
3545ed100c
2 changed files with 4 additions and 4 deletions
|
|
@ -305,8 +305,8 @@ connecting = [accent]Connecting...
|
|||
reconnecting = [accent]Reconnecting...
|
||||
connecting.data = [accent]Loading world data...
|
||||
server.port = Port:
|
||||
server.addressinuse = Address already in use!
|
||||
server.invalidport = Invalid port number!
|
||||
server.error.addressinuse = [scarlet]Failed to open server on port 6567.[]\n\nMake sure no other Mindustry servers are running on your device or network!
|
||||
server.error = [scarlet]Error hosting server.
|
||||
save.new = New Save
|
||||
save.overwrite = Are you sure you want to overwrite\nthis save slot?
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import mindustry.game.EventType.*;
|
|||
import mindustry.gen.*;
|
||||
import mindustry.ui.*;
|
||||
|
||||
import java.io.*;
|
||||
import java.util.*;
|
||||
|
||||
import static mindustry.Vars.*;
|
||||
|
||||
|
|
@ -90,8 +90,8 @@ public class HostDialog extends BaseDialog{
|
|||
}
|
||||
|
||||
|
||||
}catch(IOException e){
|
||||
ui.showException("@server.error", e);
|
||||
}catch(Exception e){
|
||||
ui.showException(e.getMessage() != null && e.getMessage().toLowerCase(Locale.ROOT).contains("address already in use") ? "@server.error.addressinuse" : "@server.error", e);
|
||||
}
|
||||
ui.loadfrag.hide();
|
||||
hide();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue