interface styles plugin: Add more error handling
If a file is expected but not found, an IllegalArgumentException will be thrown as a result of `null` being passed to the `ImageIO.read` call. This commit adds better logging for this error case.
This commit is contained in:
@@ -194,6 +194,10 @@ public class InterfaceStylesPlugin extends Plugin
|
||||
{
|
||||
log.debug("Unable to load image: ", ex);
|
||||
}
|
||||
catch (IllegalArgumentException ex)
|
||||
{
|
||||
log.debug("Input stream of file path " + filePath + " could not be read: ", ex);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user