Simplify xattr error messages
This commit is contained in:
parent
a17423dd95
commit
28dcd8279f
|
@ -2,6 +2,7 @@ package net.filebot.media;
|
||||||
|
|
||||||
import static net.filebot.Logging.*;
|
import static net.filebot.Logging.*;
|
||||||
import static net.filebot.Settings.*;
|
import static net.filebot.Settings.*;
|
||||||
|
import static net.filebot.util.ExceptionUtilities.*;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
@ -78,7 +79,7 @@ public class XattrMetaInfo {
|
||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
debug.warning("Failed to read xattr: " + e.getMessage());
|
debug.warning("Failed to read xattr: " + getRootCauseMessage(e));
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
@ -99,7 +100,7 @@ public class XattrMetaInfo {
|
||||||
xattr.get().setCreationDate(t);
|
xattr.get().setCreationDate(t);
|
||||||
}
|
}
|
||||||
} catch (Throwable e) {
|
} 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) {
|
} 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 {
|
try {
|
||||||
xattr(file).clear();
|
xattr(file).clear();
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
debug.warning("Failed to clear xattr: " + e.getMessage());
|
debug.warning("Failed to clear xattr: " + getRootCauseMessage(e));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue