Fix exception message

PiperOrigin-RevId: 266790267
This commit is contained in:
olly 2019-09-02 17:13:57 +01:00 committed by Toni
parent eedf50fdca
commit bcd7de5316

View File

@ -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) {