forked from I2P_Developers/i2p.i2p
PrintWriter doesn't throw exceptions, so call checkError()
This commit is contained in:
@@ -322,6 +322,8 @@ public class WorkingDir {
|
||||
out.println(s);
|
||||
}
|
||||
System.err.println("Copied " + oldFile + " with modifications");
|
||||
if (out.checkError())
|
||||
throw new IOException("Failed write to " + newFile);
|
||||
return true;
|
||||
} catch (IOException ioe) {
|
||||
if (in != null) {
|
||||
|
||||
Reference in New Issue
Block a user