From dc3536513dc9063c1e610d9df563a7a5a18fe2e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Tue, 18 Nov 2014 06:44:48 +0100 Subject: [PATCH] show port number in server start error message --- src/com/jpexs/decompiler/flash/gui/proxy/ProxyFrame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/jpexs/decompiler/flash/gui/proxy/ProxyFrame.java b/src/com/jpexs/decompiler/flash/gui/proxy/ProxyFrame.java index 77a23a416..ab921dd58 100644 --- a/src/com/jpexs/decompiler/flash/gui/proxy/ProxyFrame.java +++ b/src/com/jpexs/decompiler/flash/gui/proxy/ProxyFrame.java @@ -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; }