Properly show exception cause
This commit is contained in:
parent
7559e4d1f7
commit
613d0c5bc9
@ -13,6 +13,6 @@ public class NotificationHelper {
|
|||||||
public static void createIOError(String fileName, Class<?> ioStrategy, Exception ex) {
|
public static void createIOError(String fileName, Class<?> ioStrategy, Exception ex) {
|
||||||
ResourceBundle bundle = ResourceBundle.getBundle("messages");
|
ResourceBundle bundle = ResourceBundle.getBundle("messages");
|
||||||
String message = MessageFormat.format(bundle.getString("error.io"), fileName, ioStrategy.getSimpleName());
|
String message = MessageFormat.format(bundle.getString("error.io"), fileName, ioStrategy.getSimpleName());
|
||||||
Logger.getInstance(ioStrategy).error(message, ex.getCause());
|
Logger.getInstance(ioStrategy).error(message, ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user