Ignore:
Timestamp:
2010-08-19T18:27:48+02:00 (14 years ago)
Author:
stoecker
Message:

close #5318 - don't report failed image loading as fatal error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r3403 r3446  
    7373        if (icon == null) {
    7474            String ext = name.indexOf('.') != -1 ? "" : ".png";
    75             throw new NullPointerException("/images/" + subdir + "/" + name + ext + " not found");
     75            throw new NullPointerException(tr(
     76            "Fatal: failed to locate image ''{0}''. This is a serious configuration problem. JOSM will stop working.",
     77            imageName+ext));
    7678        }
    7779        return icon;
     
    244246                return u;
    245247        }
    246         System.out
    247         .println(tr(
    248                 "Fatal: failed to locate image ''{0}''. This is a serious configuration problem. JOSM will stop working.",
    249                 imageName));
    250248        return null;
    251249    }
Note: See TracChangeset for help on using the changeset viewer.