Changeset 1696 in josm for trunk/src/org/openstreetmap/josm/io
- Timestamp:
- 2009-06-27T01:06:24+02:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/io
- Files:
-
- 2 edited
-
GpxImporter.java (modified) (2 diffs)
-
OsmImporter.java (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/GpxImporter.java
r1637 r1696 6 6 import java.io.File; 7 7 import java.io.FileInputStream; 8 import java.io.FileNotFoundException; 8 9 import java.io.IOException; 9 10 import java.io.InputStream; … … 50 51 Main.main.addLayer(ml); 51 52 } 53 } catch (FileNotFoundException e) { 54 e.printStackTrace(); 55 throw new IOException(tr("File \"{0}\" does not exist", file.getName())); 52 56 } catch (SAXException e) { 53 57 e.printStackTrace(); 54 throw new IOException(tr(" Could not read\"{0}\"", file.getName()));58 throw new IOException(tr("Parsing file \"{0}\" failed", file.getName())); 55 59 } 56 57 60 } 58 59 61 } -
trunk/src/org/openstreetmap/josm/io/OsmImporter.java
r1653 r1696 38 38 } catch (FileNotFoundException e) { 39 39 e.printStackTrace(); 40 throw new IOException(tr(" Could not read\"{0}\"", file.getName()));40 throw new IOException(tr("File \"{0}\" does not exist", file.getName())); 41 41 } catch (SAXException e) { 42 42 e.printStackTrace(); 43 throw new IOException(tr(" Could not read\"{0}\"", file.getName()));43 throw new IOException(tr("Parsing file \"{0}\" failed", file.getName())); 44 44 } 45 45 }
Note:
See TracChangeset
for help on using the changeset viewer.
