String text = "  FAILED: " + ce.getMessage();
Throwable cause = ce.getCause();
if(cause != null) {
text += "   Reason: " + cause.getMessage() + "\n";
}
<BUG>try {</BUG>
infoOut.write(text);
<BUG>} catch (IOException e) {
}</BUG>
}

String text = "  FAILED: " + ce.getMessage();
Throwable cause = ce.getCause();
if(cause != null) {
text += "   Reason: " + cause.getMessage() + "\n";
