Make FileRecordingOutputStream#getRecordedOutputSize record errors.
This function was bubbling up IOExceptions without first marking the
FileOutErr as having an error, contrary to what all other functions
do.  Fix this inconsistency now before adding unit tests.
@@ -455,6 +455,9 @@ public class FileOutErr extends OutErr {
return outputFile.getFileSize();
} catch (FileNotFoundException e) {
return 0;
+ } catch (IOException e) {
+ recordError(e);
+ throw e;
}
}
