Commit bcd7de53 by olly Committed by Toni

Fix exception message

PiperOrigin-RevId: 266790267
parent eedf50fd
...@@ -107,8 +107,9 @@ public final class AtomicFile { ...@@ -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) {
......
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