Return all output and a flag noting whether or not the output contains
errors.