mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2025-08-05 04:25:29 -04:00
Added debug print, if reader not instantiatable.
This commit is contained in:
parent
3314710867
commit
850fba6d6c
@ -154,9 +154,11 @@ public class SVGImageReaderSpi extends ImageReaderSpi {
|
|||||||
public void onRegistration(ServiceRegistry registry, Class<?> category) {
|
public void onRegistration(ServiceRegistry registry, Class<?> category) {
|
||||||
if (!SVG_READER_AVAILABLE) {
|
if (!SVG_READER_AVAILABLE) {
|
||||||
try {
|
try {
|
||||||
|
// NOTE: This will break, but it gives us some useful debug info
|
||||||
new SVGImageReader(this);
|
new SVGImageReader(this);
|
||||||
}
|
}
|
||||||
catch (Throwable t) {
|
catch (Throwable t) {
|
||||||
|
System.err.println("Could not instantiate SVGImageReader (missing support classes).");
|
||||||
t.printStackTrace();
|
t.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user