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:
Jordan Atwood
2018-09-06 12:11:48 -07:00
parent 84700125cd
commit 2df2279455

View File

@@ -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;
}