Changeset 16815 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2020-08-02T15:30:13+02:00 (4 years ago)
Author:
simon04
Message:

RenderingCLI: handle NoSuchFileException

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/RenderingCLI.java

    r16814 r16815  
    1010import java.io.IOException;
    1111import java.nio.file.Files;
     12import java.nio.file.NoSuchFileException;
    1213import java.nio.file.Paths;
    1314import java.util.ArrayList;
     
    165166            BufferedImage image = rh.render();
    166167            writeImageToFile(image);
    167         } catch (FileNotFoundException e) {
     168        } catch (FileNotFoundException | NoSuchFileException e) {
    168169            if (Logging.isDebugEnabled()) {
    169170                e.printStackTrace();
Note: See TracChangeset for help on using the changeset viewer.