* simplify error messages if setting xattr fails
This commit is contained in:
parent
29bec4ebaf
commit
dd3ed4cf46
|
@ -1514,6 +1514,9 @@ public class MediaDetection {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
if (e instanceof RuntimeException && e.getCause() instanceof IOException) {
|
||||||
|
e = (IOException) e.getCause();
|
||||||
|
}
|
||||||
Logger.getLogger(MediaDetection.class.getClass().getName()).warning("Failed to set creation date: " + e.getMessage());
|
Logger.getLogger(MediaDetection.class.getClass().getName()).warning("Failed to set creation date: " + e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1528,6 +1531,9 @@ public class MediaDetection {
|
||||||
xattr.setOriginalName(original);
|
xattr.setOriginalName(original);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
if (e instanceof RuntimeException && e.getCause() instanceof IOException) {
|
||||||
|
e = (IOException) e.getCause();
|
||||||
|
}
|
||||||
Logger.getLogger(MediaDetection.class.getClass().getName()).warning("Failed to set xattr: " + e.getMessage());
|
Logger.getLogger(MediaDetection.class.getClass().getName()).warning("Failed to set xattr: " + e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue