mirror of
https://github.com/androidx/media.git
synced 2025-05-07 23:50:44 +08:00
Fix exception message
PiperOrigin-RevId: 266790267
This commit is contained in:
parent
eedf50fdca
commit
bcd7de5316
@ -107,8 +107,9 @@ public final class AtomicFile {
|
||||
} catch (FileNotFoundException e) {
|
||||
File parent = baseName.getParentFile();
|
||||
if (parent == null || !parent.mkdirs()) {
|
||||
throw new IOException("Couldn't create directory " + baseName, e);
|
||||
throw new IOException("Couldn't create " + baseName, e);
|
||||
}
|
||||
// Try again now that we've created the parent directory.
|
||||
try {
|
||||
str = new AtomicFileOutputStream(baseName);
|
||||
} catch (FileNotFoundException e2) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user