bjsion / tongue-tied

Translation and resource management tool
1 stars 0 forks source link

Error handling for invalid file uploads should be improved #113

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a java-fx file, with the following contents i.e. contains invalid 
contents:
"valid"="value"
"key"=
=
2. Import the file

What is the expected output? What do you see instead?
It would be more beneficial to the use to see a helpful error message rather 
than the following:
java.lang.ArrayIndexOutOfBoundsException: 1
    org.tonguetied.datatransfer.importing.JavaFxPropertiesImporter.loadProperties(JavaFxPropertiesImporter.java:68) org.tonguetied.datatransfer.importing.AbstractPropertiesImporter.doImport(AbstractPropertiesImporter.java:61) org.tonguetied.datatransfer.importing.Importer.importData(Importer.java:73)

Original issue reported on code.google.com by bjs...@gmail.com on 5 Nov 2010 at 10:07