Commit bcd7de53 by olly Committed by Toni

Fix exception message

PiperOrigin-RevId: 266790267
parent eedf50fd
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment