1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -05:00

Simplify xattr error messages

This commit is contained in:
Reinhard Pointner 2016-04-16 21:54:03 +00:00
parent a17423dd95
commit 28dcd8279f

View File

@ -2,6 +2,7 @@ package net.filebot.media;
import static net.filebot.Logging.*;
import static net.filebot.Settings.*;
import static net.filebot.util.ExceptionUtilities.*;
import java.io.File;
import java.util.Locale;
@ -78,7 +79,7 @@ public class XattrMetaInfo {
return null;
});
} catch (Throwable e) {
debug.warning("Failed to read xattr: " + e.getMessage());
debug.warning("Failed to read xattr: " + getRootCauseMessage(e));
}
return null;
}
@ -99,7 +100,7 @@ public class XattrMetaInfo {
xattr.get().setCreationDate(t);
}
} catch (Throwable e) {
debug.warning("Failed to set creation date: " + e.getMessage());
debug.warning("Failed to set creation date: " + getRootCauseMessage(e));
}
}
@ -121,7 +122,7 @@ public class XattrMetaInfo {
}
}
} catch (Throwable e) {
debug.warning("Failed to set xattr: " + e.getMessage());
debug.warning("Failed to set xattr: " + getRootCauseMessage(e));
}
}
@ -134,7 +135,7 @@ public class XattrMetaInfo {
try {
xattr(file).clear();
} catch (Throwable e) {
debug.warning("Failed to clear xattr: " + e.getMessage());
debug.warning("Failed to clear xattr: " + getRootCauseMessage(e));
}
}
}