immibis / bearded-octo-nemesis

Now 99.9% fat free!
128 stars 31 forks source link

Exception when output file is blank #18

Closed jarrett closed 11 years ago

jarrett commented 11 years ago

Using the GUI, when "Output file" is blank, I get this:

An error has occurred - give immibis this stack trace (which has been copied to the clipboard)

java.io.FileNotFoundException:  (No such file or directory)
    at java.io.FileOutputStream.open(Native Method)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
    at java.io.FileOutputStream.<init>(FileOutputStream.java:165)
    at immibis.bon.io.JarWriter.write(JarWriter.java:23)
    at immibis.bon.gui.GuiMain$1.run(GuiMain.java:191)

Perhaps it should validate the output file path before deobfuscating, and display a helpful error message if the path is missing or invalid?

Myrathi commented 11 years ago

With a missing output path, it would be awesome if it would just automatically add a .deobf or something before the extension. Having to copy/paste/amend the input filename into the output every time is tedious.