diff --git a/source/net/filebot/media/XattrMetaInfo.java b/source/net/filebot/media/XattrMetaInfo.java index f251279e..dd600456 100644 --- a/source/net/filebot/media/XattrMetaInfo.java +++ b/source/net/filebot/media/XattrMetaInfo.java @@ -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)); } } }