Fix exception message

PiperOrigin-RevId: 266790267
This commit is contained in:
Oliver Woodman 2019-09-16 16:56:32 -07:00
parent 4712bcfd53
commit 525d0320a7

View File

@ -108,8 +108,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) {