Simplify xattr error messages

This commit is contained in:
Reinhard Pointner 2016-04-16 21:54:03 +00:00
parent a17423dd95
commit 28dcd8279f
1 changed files with 5 additions and 4 deletions

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));
}
}
}