Commit af60150b authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed error when there was a whitespace in the url of wildfireHome.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@6732 b35dd754-fafc-0310-a699-88a17e54d16e
parent 4b3ea2d3
......@@ -39,7 +39,7 @@ public class Launcher {
private String appName;
private File binDir;
private Process wildfired;
private String configFile;
private File configFile;
private JPanel toolbar = new JPanel();
private ImageIcon offIcon;
......@@ -87,8 +87,7 @@ public class Launcher {
binDir = new File(System.getProperty("appdir"));
}
configFile = new File(new File(binDir.getParent(), "conf"),
"wildfire.xml").getAbsolutePath();
configFile = new File(new File(binDir.getParent(), "conf"), "wildfire.xml");
frame = new DroppableFrame() {
public void fileDropped(File file) {
......@@ -494,6 +493,8 @@ public class Launcher {
}
}
catch (Exception e) {
// Make sure to print the exception
e.printStackTrace(System.out);
JOptionPane.showMessageDialog(new JFrame(), configFile + " " + e.getMessage());
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment