Ignore:
Timestamp:
2009-06-27T01:06:24+02:00 (15 years ago)
Author:
stoecker
Message:

fixed mappaint area style handling for closed ways a little bit again

Location:
trunk/src/org/openstreetmap/josm/io
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/GpxImporter.java

    r1637 r1696  
    66import java.io.File;
    77import java.io.FileInputStream;
     8import java.io.FileNotFoundException;
    89import java.io.IOException;
    910import java.io.InputStream;
     
    5051                    Main.main.addLayer(ml);
    5152            }
     53        } catch (FileNotFoundException e) {
     54            e.printStackTrace();
     55            throw new IOException(tr("File \"{0}\" does not exist", file.getName()));
    5256        } catch (SAXException e) {
    5357            e.printStackTrace();
    54             throw new IOException(tr("Could not read \"{0}\"", file.getName()));
     58            throw new IOException(tr("Parsing file \"{0}\" failed", file.getName()));
    5559        }
    56 
    5760    }
    58 
    5961}
  • trunk/src/org/openstreetmap/josm/io/OsmImporter.java

    r1653 r1696  
    3838        } catch (FileNotFoundException e) {
    3939            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()));
    4141        } catch (SAXException e) {
    4242            e.printStackTrace();
    43             throw new IOException(tr("Could not read \"{0}\"", file.getName()));
     43            throw new IOException(tr("Parsing file \"{0}\" failed", file.getName()));
    4444        }
    4545    }
Note: See TracChangeset for help on using the changeset viewer.