From 28dcd8279fd8af9d1bb5b63d16ebda7a1f949943 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 16 Apr 2016 21:54:03 +0000 Subject: [PATCH] Simplify xattr error messages --- source/net/filebot/media/XattrMetaInfo.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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)); } } }