Change the error detection logic so it triggers on the first error
message from make rather than on the last.