mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix exception message
PiperOrigin-RevId: 266790267
This commit is contained in:
parent
eedf50fdca
commit
bcd7de5316
1 changed files with 2 additions and 1 deletions
|
|
@ -107,8 +107,9 @@ public final class AtomicFile {
|
||||||
} catch (FileNotFoundException e) {
|
} catch (FileNotFoundException e) {
|
||||||
File parent = baseName.getParentFile();
|
File parent = baseName.getParentFile();
|
||||||
if (parent == null || !parent.mkdirs()) {
|
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 {
|
try {
|
||||||
str = new AtomicFileOutputStream(baseName);
|
str = new AtomicFileOutputStream(baseName);
|
||||||
} catch (FileNotFoundException e2) {
|
} catch (FileNotFoundException e2) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue