Only flag the query as failed if there was an error.