Properly show exception cause

This commit is contained in:
marhali 2022-01-11 14:12:47 +01:00
parent 7559e4d1f7
commit 613d0c5bc9

View File

@ -13,6 +13,6 @@ public class NotificationHelper {
public static void createIOError(String fileName, Class<?> ioStrategy, Exception ex) {
ResourceBundle bundle = ResourceBundle.getBundle("messages");
String message = MessageFormat.format(bundle.getString("error.io"), fileName, ioStrategy.getSimpleName());
Logger.getInstance(ioStrategy).error(message, ex.getCause());
Logger.getInstance(ioStrategy).error(message, ex);
}
}