boolean activateOnErrors = kind == ProcessStartKind.BUILD &&
ToolsConsolePrefs.ACTIVATE_ON_ERROR_MESSAGES.get();
if(errorOnNonZeroExitValueForBuild && exitCode != 0 && activateOnErrors) {
console.activate();
}
<BUG>try {</BUG>
infoOut.write(getProcessTerminatedMessage(exitCode));
infoOut.flush();
<BUG>} catch (IOException e) {
}</BUG>
}

boolean activateOnErrors = kind == ProcessStartKind.BUILD &&
ToolsConsolePrefs.ACTIVATE_ON_ERROR_MESSAGES.get();
if(errorOnNonZeroExitValueForBuild && exitCode != 0 && activateOnErrors) {
console.activate();
}
infoOut.write(getProcessTerminatedMessage(exitCode));
infoOut.flush();
}
