1
0
mirror of https://github.com/mitb-archive/filebot synced 2025-03-08 20:39:44 -05:00

Improved error logging

This commit is contained in:
Reinhard Pointner 2019-03-08 14:51:21 +07:00
parent d0c25c6b3e
commit e5296ca6f4

View File

@ -10,6 +10,7 @@ import java.io.IOException;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.lang.reflect.InvocationTargetException;
import java.nio.channels.FileChannel;
import java.nio.file.StandardOpenOption;
import java.time.ZoneId;
@ -123,7 +124,7 @@ public final class Logging {
public static String getMessage(Object m, Throwable t) {
// try to unravel stacked exceptions
if (t.getCause() != null && (t instanceof RuntimeException || t instanceof ExecutionException)) {
if (t.getCause() != null && (t instanceof RuntimeException || t instanceof ExecutionException || t instanceof InvocationTargetException)) {
return getMessage(m, t.getCause());
}