Refactor error reporting to use a boolean rather than a count.