show port number in server start error message

This commit is contained in:
Jindra Petřík
2014-11-18 06:44:48 +01:00
parent 917c56e549
commit dc3536513d

View File

@@ -566,7 +566,7 @@ public class ProxyFrame extends AppFrame implements ActionListener, CatchedListe
catchedContentTypes.add("application/xml");
catchedContentTypes.add("application/octet-stream");
if(!Server.startServer(port, Configuration.getReplacements(), catchedContentTypes, this, this)){
JOptionPane.showMessageDialog(this, translate("error.start.server"),AppStrings.translate("error"),JOptionPane.ERROR_MESSAGE);
JOptionPane.showMessageDialog(this, translate("error.start.server").replace("%port%", ""+port),AppStrings.translate("error"),JOptionPane.ERROR_MESSAGE);
started = false;
return;
}